Skip to content

Instantly share code, notes, and snippets.

@quochuy

quochuy/.ts Secret

Created September 15, 2021 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quochuy/5b95ba862fb6dc5d534b0c8a1c0658af to your computer and use it in GitHub Desktop.
Save quochuy/5b95ba862fb6dc5d534b0c8a1c0658af to your computer and use it in GitHub Desktop.
interface MyInput {
attr1: string;
attr2: number;
}
const myFunction = (input: MyInput): boolean => {
return input.attr1 === 'test' && input.attr2 > 10;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment