You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstPageSchema=BufferSchema.schema('page',{availHeight: uint16,availWidth: uint16})// Convert schema to Typescript typestypePage=Infer<typeofPageSchema.struct>// example
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the future, can the package support converting Schema data to interface or type of typescript? A feature similar to superstruct
Infer<>
(https://docs.superstructjs.org/guides/06-using-typescript#inferring-types).Something like this:
Expectation:
Beta Was this translation helpful? Give feedback.
All reactions