jackmerrill.com/interfaces/index.ts

11 lines
270 B
TypeScript
Raw Normal View History

2021-03-30 22:27:36 -07:00
// You can include shared interfaces/types in a separate file
// and then use them in any component by importing them. For
// example, to import the interface below do:
//
// import { User } from 'path/to/interfaces';
export type User = {
id: number
name: string
}