Created
February 11, 2022 12:25
-
-
Save TorbjornHoltmon/6321bd307035fdf11246692bf6883bf2 to your computer and use it in GitHub Desktop.
Type predicates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function assertIAsset<T>(item: IAsset | IReference): item is IAsset { | |
return item.type === "typenavn her"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment