"use strict";(globalThis.webpackChunksimple_scaffold_docs=globalThis.webpackChunksimple_scaffold_docs||[]).push([[968],{1271(e,s,n){n.r(s),n.d(s,{assets:()=>o,contentTitle:()=>r,default:()=>p,frontMatter:()=>a,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"api/type-aliases/FileResponse","title":"FileResponse<T>","description":"FileResponse\\\\ = T \\\\| FileResponseHandler\\\\","source":"@site/docs/api/type-aliases/FileResponse.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/FileResponse","permalink":"/simple-scaffold/docs/api/type-aliases/FileResponse","draft":false,"unlisted":false,"editUrl":"https://github.com/chenasraf/simple-scaffold/blob/master/docs/docs/api/type-aliases/FileResponse.md","tags":[],"version":"current","frontMatter":{},"sidebar":"api","previous":{"title":"DefaultHelpers","permalink":"/simple-scaffold/docs/api/type-aliases/DefaultHelpers"},"next":{"title":"FileResponseHandler<T>","permalink":"/simple-scaffold/docs/api/type-aliases/FileResponseHandler"}}');var l=n(2615),t=n(416);const a={},r="FileResponse<T>",o={},c=[{value:"Type Parameters",id:"type-parameters",level:2},{value:"T",id:"t",level:3},{value:"See",id:"see",level:2}];function d(e){const s={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,t.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.header,{children:(0,l.jsx)(s.h1,{id:"fileresponset",children:(0,l.jsx)(s.code,{children:"FileResponse<T>"})})}),"\n",(0,l.jsxs)(s.blockquote,{children:["\n",(0,l.jsxs)(s.p,{children:[(0,l.jsx)(s.strong,{children:"FileResponse"}),"<",(0,l.jsx)(s.code,{children:"T"}),"> = ",(0,l.jsx)(s.code,{children:"T"})," | ",(0,l.jsx)(s.a,{href:"/simple-scaffold/docs/api/type-aliases/FileResponseHandler",children:(0,l.jsx)(s.code,{children:"FileResponseHandler"})}),"<",(0,l.jsx)(s.code,{children:"T"}),">"]}),"\n"]}),"\n",(0,l.jsxs)(s.p,{children:["Defined in: ",(0,l.jsx)(s.a,{href:"https://github.com/chenasraf/simple-scaffold/blob/8834e490856c52a290cd631c7032aec22643200a/src/types.ts#L444",children:"types.ts:444"})]}),"\n",(0,l.jsx)(s.p,{children:"Represents a response for file path information.\nCan either be:"}),"\n",(0,l.jsxs)(s.ol,{children:["\n",(0,l.jsxs)(s.li,{children:[(0,l.jsx)(s.code,{children:"T"})," - static value"]}),"\n",(0,l.jsxs)(s.li,{children:["A function with the following signature which returns ",(0,l.jsx)(s.code,{children:"T"}),":","\n",(0,l.jsx)(s.pre,{children:(0,l.jsx)(s.code,{className:"language-typescript",children:"(fullPath: string, basedir: string, basename: string) => T\n"})}),"\n"]}),"\n"]}),"\n",(0,l.jsx)(s.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,l.jsx)(s.h3,{id:"t",children:"T"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.code,{children:"T"})}),"\n",(0,l.jsx)(s.h2,{id:"see",children:"See"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.a,{href:"/simple-scaffold/docs/api/type-aliases/FileResponseHandler",children:"FileResponseHandler"})})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,l.jsx)(s,{...e,children:(0,l.jsx)(d,{...e})}):d(e)}},416(e,s,n){n.d(s,{R:()=>a,x:()=>r});var i=n(9471);const l={},t=i.createContext(l);function a(e){const s=i.useContext(t);return i.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function r(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:a(e.components),i.createElement(t.Provider,{value:s},e.children)}}}]);