Skip to content

Static<typeof Model> vs typeof Model.static #603

Answered by sinclairzx81
pauldvu asked this question in Q&A
Discussion options

You must be logged in to vote

@pauldvu Hi,

You should be able to use typeof T.static or Static<typeof T> interchangeable. You're free to use either form, but be mindful that the .static property is a phantom property, and the Static usage does provide an abstraction over that detail.

Hope that helps!
S

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pauldvu
Comment options

Answer selected by pauldvu
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