MCPcopy Create free account
hub / github.com/dataform-co/dataform / strictKeysOf

Function strictKeysOf

core/utils.ts:210–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208 * Checks that the given list of keys completely covers all supported keys in the given interface.
209 */
210export function strictKeysOf<T>() {
211 return <U extends Array<keyof T>>(
212 array: U & ([keyof T] extends [U[number]] ? unknown : Array<["Needs to be all of", T]>)
213 ) => array;
214}
215
216/**
217 * Will throw an error if the provided object contains any properties that aren't in the provided list.

Callers 4

verifyConfigMethod · 0.90
test.tsFile · 0.90
verifyConfigMethod · 0.90
verifyConfigMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected