Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type PropType = String | Boolean | Number | Object | typeof Array
- function prop<T = any>(type: PropType, options: any = {}): T {
- return { type, ...options } as any
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement