Skip to content

Instantly share code, notes, and snippets.

@Roaders
Roaders / keyOfTypes.ts
Created Jan 14, 2020
Typescript keyof for properties or functions
View keyOfTypes.ts
interface IAddress{
street: string | string[];
town: string;
postcode: string;
}
interface IPerson {
id: number;
name: string;
isFemale: boolean;
You can’t perform that action at this time.