"use strict";(globalThis.webpackChunksimple_scaffold_docs=globalThis.webpackChunksimple_scaffold_docs||[]).push([[430],{4321(e,s,n){n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>t,default:()=>p,frontMatter:()=>i,metadata:()=>l,toc:()=>c});const l=JSON.parse('{"id":"api/type-aliases/FileResponseHandler","title":"FileResponseHandler<T>","description":"FileResponseHandler\\\\ = (fullPath, basedir, basename) => T","source":"@site/docs/api/type-aliases/FileResponseHandler.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/FileResponseHandler","permalink":"/simple-scaffold/docs/api/type-aliases/FileResponseHandler","draft":false,"unlisted":false,"editUrl":"https://github.com/chenasraf/simple-scaffold/blob/master/docs/docs/api/type-aliases/FileResponseHandler.md","tags":[],"version":"current","frontMatter":{},"sidebar":"api","previous":{"title":"FileResponse<T>","permalink":"/simple-scaffold/docs/api/type-aliases/FileResponse"},"next":{"title":"Helper","permalink":"/simple-scaffold/docs/api/type-aliases/Helper"}}');var r=n(2615),a=n(416);const i={},t="FileResponseHandler<T>",d={},c=[{value:"Type Parameters",id:"type-parameters",level:2},{value:"T",id:"t",level:3},{value:"Parameters",id:"parameters",level:2},{value:"fullPath",id:"fullpath",level:3},{value:"basedir",id:"basedir",level:3},{value:"basename",id:"basename",level:3},{value:"Returns",id:"returns",level:2}];function o(e){const s={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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.header,{children:(0,r.jsx)(s.h1,{id:"fileresponsehandlert",children:(0,r.jsx)(s.code,{children:"FileResponseHandler<T>"})})}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"FileResponseHandler"}),"<",(0,r.jsx)(s.code,{children:"T"}),"> = (",(0,r.jsx)(s.code,{children:"fullPath"}),", ",(0,r.jsx)(s.code,{children:"basedir"}),", ",(0,r.jsx)(s.code,{children:"basename"}),") => ",(0,r.jsx)(s.code,{children:"T"})]}),"\n"]}),"\n",(0,r.jsxs)(s.p,{children:["Defined in: ",(0,r.jsx)(s.a,{href:"https://github.com/chenasraf/simple-scaffold/blob/8834e490856c52a290cd631c7032aec22643200a/src/types.ts#L428",children:"types.ts:428"})]}),"\n",(0,r.jsxs)(s.p,{children:["A function that takes path information about file, and returns a value of type ",(0,r.jsx)(s.code,{children:"T"})]}),"\n",(0,r.jsx)(s.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,r.jsx)(s.h3,{id:"t",children:"T"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.code,{children:"T"})}),"\n",(0,r.jsx)(s.p,{children:"The return type for the function"}),"\n",(0,r.jsx)(s.h2,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsx)(s.h3,{id:"fullpath",children:"fullPath"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.code,{children:"string"})}),"\n",(0,r.jsx)(s.p,{children:"The full path of the current file"}),"\n",(0,r.jsx)(s.h3,{id:"basedir",children:"basedir"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.code,{children:"string"})}),"\n",(0,r.jsx)(s.p,{children:"The directory containing the current file"}),"\n",(0,r.jsx)(s.h3,{id:"basename",children:"basename"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.code,{children:"string"})}),"\n",(0,r.jsx)(s.p,{children:"The name of the file"}),"\n",(0,r.jsx)(s.h2,{id:"returns",children:"Returns"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.code,{children:"T"})}),"\n",(0,r.jsx)(s.p,{children:"A return value"})]})}function p(e={}){const{wrapper:s}={...(0,a.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(o,{...e})}):o(e)}},416(e,s,n){n.d(s,{R:()=>i,x:()=>t});var l=n(9471);const r={},a=l.createContext(r);function i(e){const s=l.useContext(a);return l.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function t(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),l.createElement(a.Provider,{value:s},e.children)}}}]);