"use strict";(globalThis.webpackChunksimple_scaffold_docs=globalThis.webpackChunksimple_scaffold_docs||[]).push([[774],{9774(e,n,s){s.r(n),s.d(n,{assets:()=>r,contentTitle:()=>c,default:()=>f,frontMatter:()=>a,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"api/functions/assertConfigValid","title":"assertConfigValid()","description":"assertConfigValid(config): Promise\\\\","source":"@site/docs/api/functions/assertConfigValid.md","sourceDirName":"api/functions","slug":"/api/functions/assertConfigValid","permalink":"/simple-scaffold/docs/api/functions/assertConfigValid","draft":false,"unlisted":false,"editUrl":"https://github.com/chenasraf/simple-scaffold/blob/master/docs/docs/api/functions/assertConfigValid.md","tags":[],"version":"current","frontMatter":{},"sidebar":"api","previous":{"title":"Scaffold()","permalink":"/simple-scaffold/docs/api/functions/Scaffold"},"next":{"title":"validateConfig()","permalink":"/simple-scaffold/docs/api/functions/validateConfig"}}');var t=s(2615),o=s(416);const a={},c="assertConfigValid()",r={},d=[{value:"Parameters",id:"parameters",level:2},{value:"config",id:"config",level:3},{value:"Returns",id:"returns",level:2}];function l(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"assertconfigvalid",children:(0,t.jsx)(n.code,{children:"assertConfigValid()"})})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"assertConfigValid"}),"(",(0,t.jsx)(n.code,{children:"config"}),"): ",(0,t.jsx)(n.code,{children:"Promise"}),"<",(0,t.jsx)(n.code,{children:"void"}),">"]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Defined in: ",(0,t.jsx)(n.a,{href:"https://github.com/chenasraf/simple-scaffold/blob/8834e490856c52a290cd631c7032aec22643200a/src/validate.ts#L155",children:"validate.ts:155"})]}),"\n",(0,t.jsx)(n.p,{children:"Validates the config and throws a formatted error if any issues are found.\nChecks both schema validity and template path existence."}),"\n",(0,t.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,t.jsx)(n.h3,{id:"config",children:"config"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.code,{children:"unknown"})}),"\n",(0,t.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"Promise"}),"<",(0,t.jsx)(n.code,{children:"void"}),">"]})]})}function f(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},416(e,n,s){s.d(n,{R:()=>a,x:()=>c});var i=s(9471);const t={},o=i.createContext(t);function a(e){const n=i.useContext(o);return i.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),i.createElement(o.Provider,{value:n},e.children)}}}]);