FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.88k stars 137 forks source link

Version 3 #1027

Closed LoicPoullain closed 1 year ago

LoicPoullain commented 2 years ago
luxaritas commented 2 years ago

Updating AJV will be great - JSONSchemaType/JTDSchemaType/JTDDataType will be a welcome addition to provide type safety with the validation :)

kingdun3284 commented 1 year ago

Idea: add overloading to support the official json schema type https://www.npmjs.com/package/@types/json-schema for hooks provided by Foalts. According to Open API spec 3.1, it will be a super set of jsonschema.

kingdun3284 commented 1 year ago

Idea2: Wish to support typescript interface for Configfile with hinted path. For example:

Config.get<P extends FoalsDefaultConfigInterface,K extends string=never>(path:AutoPath<P,K>,...others)
LoicPoullain commented 1 year ago

Hi @kingdun3284 👋

Version 3 is 10 months late so I decided not to add any new features (except the ones that are already coded) so as to be able to release it after. New features with breaking changes will be studied for the the next major release 👍

LoicPoullain commented 1 year ago

The PR has been merged 💪