Skip to content

Instantly share code, notes, and snippets.

@kring
Last active March 20, 2019 12:02
Show Gist options
  • Save kring/ea2907815582443ea22796e91dad7f33 to your computer and use it in GitHub Desktop.
Save kring/ea2907815582443ea22796e91dad7f33 to your computer and use it in GitHub Desktop.
interface Test {
foo: number;
bar?: number;
baz: number | undefined;
}
type TestWithAllFields = Complete<Test>;
// TestWithAllFields is equivalent to:
// interface TestWithAllFields {
// foo: number;
// bar: number | undefined;
// baz: number | undefined;
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment