Skip to content

Instantly share code, notes, and snippets.

@akihisa-shimada
Created December 17, 2021 23:01
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 akihisa-shimada/d59506ba27fc00c396000bc0e5b81f75 to your computer and use it in GitHub Desktop.
Save akihisa-shimada/d59506ba27fc00c396000bc0e5b81f75 to your computer and use it in GitHub Desktop.
interface ExampleInterface<T, U> {
value1: T;
value2: U;
}
const obj: ExampleInterface<string, number> = { value1: '文字列', value2: 1 };
console.log(obj.value1); // 文字列
console.log(obj.value2); // 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment