UNPKG

@directus/sdk

Version:

Directus JavaScript SDK

2 lines 341 B
const e=require(`../../utils/throw-if-empty.cjs`),t=t=>()=>(e.throwIfEmpty(t,`Keys cannot be empty`),{path:`/presets`,body:JSON.stringify(t),method:`DELETE`}),n=t=>()=>(e.throwIfEmpty(String(t),`Key cannot be empty`),{path:`/presets/${t}`,method:`DELETE`});exports.deletePreset=n,exports.deletePresets=t; //# sourceMappingURL=presets.cjs.map