Auto Type Table
Auto-generated type table
Prop | Type | Default |
---|---|---|
percentage | number | 0.2 |
Usage
Under the hood, it uses the Typescript Compiler API to extract type information.
Your tsconfig.json
file in the current working directory will be loaded. You may specify compiler settings via options
prop.
It accepts a path
prop which should be a typescript file, and name
for the exported type name.
Server Component only
You cannot use this in a client component.
Functions
Notice that only object type is allowed. For functions, you should wrap them into an object instead.
Auto Type Table
Prop | Type | Default |
---|---|---|
path | string | - |
name | string | - |
options | Partial<{ files: string[]; tsconfigPath: string; basePath: string; }> | - |
Last updated on