Expand description
Global type registry and built-in shape definitions, ported from Globals.ts.
Provides DEFAULT_SHAPES (built-in object shapes) and DEFAULT_GLOBALS
(global variable types including React hooks and JS built-ins).
Structs§
- Global
Registry - Registry mapping global names to their types.
Functions§
- base_
globals - Get a reference to the static base globals registry.
- base_
shapes - Get a reference to the static base shapes registry.
- build_
builtin_ shapes - Build the built-in shapes registry. This corresponds to TS
BUILTIN_SHAPESdefined at module level in ObjectShape.ts. - build_
default_ globals - Build the default globals registry. This corresponds to TS
DEFAULT_GLOBALS. - get_
reanimated_ module_ type - Build the reanimated module type. Ported from TS
getReanimatedModuleType. - install_
type_ config - Convert a user-provided TypeConfig into an internal Type, registering shapes
as needed. Ported from TS
installTypeConfigin Globals.ts. Iferrorsis provided, hook-name vs hook-type consistency validation errors are collected there. - install_
type_ config_ with_ errors - Like
install_type_configbut collects validation errors.
Type Aliases§
- Global
- Type alias matching TS
Global = BuiltInType | PolyType. In the Rust port, both map to ourTypeenum.