"use strict";(globalThis.webpackChunksimple_scaffold_docs=globalThis.webpackChunksimple_scaffold_docs||[]).push([[765],{2795(e,n,i){i.r(n),i.d(n,{assets:()=>r,contentTitle:()=>c,default:()=>f,frontMatter:()=>o,metadata:()=>t,toc:()=>l});const t=JSON.parse('{"id":"api/functions/validateConfig","title":"validateConfig()","description":"validateConfig(config): string[]","source":"@site/docs/api/functions/validateConfig.md","sourceDirName":"api/functions","slug":"/api/functions/validateConfig","permalink":"/simple-scaffold/docs/api/functions/validateConfig","draft":false,"unlisted":false,"editUrl":"https://github.com/chenasraf/simple-scaffold/blob/master/docs/docs/api/functions/validateConfig.md","tags":[],"version":"current","frontMatter":{},"sidebar":"api","previous":{"title":"assertConfigValid()","permalink":"/simple-scaffold/docs/api/functions/assertConfigValid"},"next":{"title":"AfterScaffoldContext","permalink":"/simple-scaffold/docs/api/interfaces/AfterScaffoldContext"}}');var s=i(2615),a=i(416);const o={},c="validateConfig()",r={},l=[{value:"Parameters",id:"parameters",level:2},{value:"config",id:"config",level:3},{value:"Returns",id:"returns",level:2}];function d(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"validateconfig",children:(0,s.jsx)(n.code,{children:"validateConfig()"})})}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"validateConfig"}),"(",(0,s.jsx)(n.code,{children:"config"}),"): ",(0,s.jsx)(n.code,{children:"string"}),"[]"]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Defined in: ",(0,s.jsx)(n.a,{href:"https://github.com/chenasraf/simple-scaffold/blob/8834e490856c52a290cd631c7032aec22643200a/src/validate.ts#L125",children:"validate.ts:125"})]}),"\n",(0,s.jsx)(n.p,{children:"Validates a scaffold config and returns a list of human-readable errors.\nReturns an empty array if the config is valid."}),"\n",(0,s.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsx)(n.h3,{id:"config",children:"config"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"unknown"})}),"\n",(0,s.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]})]})}function f(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},416(e,n,i){i.d(n,{R:()=>o,x:()=>c});var t=i(9471);const s={},a=t.createContext(s);function o(e){const n=t.useContext(a);return t.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(s):e.components||s:o(e.components),t.createElement(a.Provider,{value:n},e.children)}}}]);