Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add static typings to ObjectTypeDefinitions #2

Open
T99 opened this issue Jun 29, 2021 · 0 comments
Open

Add static typings to ObjectTypeDefinitions #2

T99 opened this issue Jun 29, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@T99
Copy link
Owner

T99 commented Jun 29, 2021

For this static type:

type MyType = {
    name: string;
    date: number;
};

With this object type definition:

let otd: ObjectTypeDefinition<MyType> = new ObjectTypeDefinition<MyType>({
    name: StandardType.STRING,
    date: StandardType.NUMBER
});
@T99 T99 self-assigned this Jun 29, 2021
@T99 T99 added the enhancement New feature or request label Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant