NativeType
type NativeType<T> = T & {
_: never;
};
Defined in: node_modules/@3dverse/livelink.core/dist/sources/types/utils.d.ts:17
A dummy type to enforce the instantiation of a type alias of a native type, such as string
or number
.
This is only to ensure that the alias type shows up in the generated documentation and in autocomplete.
Example:
type UUID = string;
A variable of type UUID
will show up as string
in the documentation.
type UUID = NativeType<string>;
A variable of type UUID
will show up as UUID
in the documentation.
Type declaration
Name | Type |
---|---|
_ ? | never |
Type Parameters
Type Parameter |
---|
T |