Skip to content

extendOptions and typescript definition #470

Answered by aldeed
generalleger asked this question in Q&A
Discussion options

You must be logged in to vote

In the test we use a // @ts-expect-error comment above each extended option to silent TS. Potentially we could add a generic type argument so that you could do something like new SimpleSchema<ExtendedOptions>({ ... })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by generalleger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants