- Preparing search index...
- The search index is not available
API References
Function assertObjectHasDefinedKeys
- assertObjectHasDefinedKeys<T, K>(input: T, keys: K[], onError: ((missingKeys: K[]) => MetaplexError)): asserts input is { [ key in string | number | symbol]: T[key] } & { [ key in string | number | symbol]-?: T[key] }
-
Type Parameters
-
T extends object
-
K extends string | number | symbol = keyof T
Parameters
-
input: T
-
keys: K[]
-
onError: ((missingKeys: K[]) => MetaplexError)
Returns asserts input is { [ key in string | number | symbol]: T[key] } & { [ key in string | number | symbol]-?: T[key] }
Asserts that a given object contains the specified keys such that their values are defined.