Skip to content

Instantly share code, notes, and snippets.

@decentraliser
Created January 14, 2022 10:01
Show Gist options
  • Save decentraliser/1730948b5ee219504151ef6bdfe009a6 to your computer and use it in GitHub Desktop.
Save decentraliser/1730948b5ee219504151ef6bdfe009a6 to your computer and use it in GitHub Desktop.
jsdocs type casting
const subUser = /** @type {SubUserType} */ (/** @type {unknown} */ (user))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment