Partial Typescript Types

You can use Partial to make all the properties of a type optional.

interface Foo {
    bar: string;
}

type FooPartial = Partial<Foo>;

const foo: FooPartial = {};