Skip to main content

AttributesArgument

@webda/models


Type Alias: AttributesArgument<T>

AttributesArgument<T> = { [P in Extract<RequiredArgKeys<T>, string | number>]: AttributeValue<T[P]> } & { [P in Extract<OptionalArgKeys<T>, string | number>]?: AttributeValue<T[P]> }

Defined in: packages/models/src/storable.ts:157

Build the argument type for creating/updating a Storable.

Properties with a required set arg are required; those with an optional set arg are optional.

Type Parameters​

T​

T extends Storable