Skip to content

Instantly share code, notes, and snippets.

@quochuy

quochuy/.ts Secret

Created Sep 15, 2021
Embed
What would you like to do?
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