mcfly/packages/config/src/define-config.ts
Ayo 970970fd32 feat: use fastify as server
- [x] implement server framework plugin config
- [x] new @mcflyjs/fastify package
- [x] update readme re: pivot & target state
- [x] new basic template

Reviewed-on: https://git.ayo.run/ayo/mcfly/pulls/2
Co-authored-by: Ayo <ayo@ayco.io>
Co-committed-by: Ayo <ayo@ayco.io>
2026-06-04 11:03:45 +00:00

21 lines
410 B
TypeScript

export type McFlyConfig = {
server: McFlyServer
components?: 'js' | 'lit'
plugins?: McFlyPlugin[]
}
/**
* Define the configuration for the McFly project
* @param {McFlyConfig} config
* @returns {function(): McFlyConfig}e
*/
export function defineConfig(config: McFlyConfig) {
return () => config
}
/**
* TODO: finalize Plugin type
*/
export type McFlyPlugin = {}
export type McFlyServer = any