@jsdotlua/jest-get-type

3.6.1-rc.2 • Public • Published

jest-get-type

Status: ✔️ Ported

Source: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-get-type

Version: v27.4.7


✏️ Notes

  • Lua makes no distinction between tables, objects, and arrays. We always return table at this level and consumers are expected to check at a higher level.
  • Lua makes no distinction between null and undefined so we only return nil.
  • Lua lacks the following primitives: bigint, symbol.
  • Lua lacks the following built-in types: RegExp, Map, Set, Date.
  • JestGetType deviates and exposes an isRobloxBuiltin method to check whether a value is a Roblox builtin type

Types supported:

  • Lua Primitives - nil, table, number, string, function, boolean, userdata, thread
  • Luau Polyfill types - symbol, regexp, error, set
  • Roblox datatypes - DateTime, and other builtin types

❌ Excluded

Package Version Status Notes

Readme

Keywords

none

Package Sidebar

Install

npm i @jsdotlua/jest-get-type

Weekly Downloads

11

Version

3.6.1-rc.2

License

MIT

Unpacked Size

4.92 kB

Total Files

3

Last publish

Collaborators

  • brxst
  • jeparlefrancais