MCPcopy
hub / github.com/sindresorhus/ow / patchHotdog

Function patchHotdog

test/absent.ts:61–74  ·  view source on GitHub ↗
(hotdog: Hotdog, patchBody: unknown)

Source from the content-addressed store, hash-verified

59 };
60
61 function patchHotdog(hotdog: Hotdog, patchBody: unknown): Hotdog {
62 ow(
63 patchBody,
64 ow.object.exactShape({
65 length: ow.absent.number,
66 topping: ow.absent.string,
67 }),
68 );
69
70 return {
71 ...hotdog,
72 ...patchBody,
73 };
74 }
75
76 const dog = {length: 10, topping: 'mustard'};
77

Callers 1

absent.tsFile · 0.85

Calls 2

owFunction · 0.85
exactShapeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…