Skip to content

Commit

Permalink
Additional comment on the Id type hack [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Oct 17, 2021
1 parent 360fc5b commit 6f8b393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as utils from './utils';

/**
* IdInternal can be used as a string primitive
* This type hack prevents TS from complaining
* This type hack (as a number) prevents TS from complaining
* See: https://github.com/microsoft/TypeScript/issues/4538
*/
type Id = IdInternal & number;
Expand Down

0 comments on commit 6f8b393

Please sign in to comment.