vatts 1.0.1 → 1.0.2-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -192,12 +192,10 @@ export type RequestHandler = (req: any, res: any) => Promise<void>;
192
192
  /**
193
193
  * Define o formato de uma função que manipula uma rota da API.
194
194
  */
195
- export type BackendHandler = (request: VattsRequest, // HWebRequest será importado onde necessário
196
- params: {
195
+ export type BackendHandler = (request: VattsRequest, params: {
197
196
  [key: string]: string;
198
197
  }) => Promise<VattsResponse> | VattsResponse;
199
- export type VattsMiddleware = (request: VattsRequest, // HWebRequest será importado onde necessário
200
- params: {
198
+ export type VattsMiddleware = (request: VattsRequest, params: {
201
199
  [key: string]: string;
202
200
  }, next: () => Promise<VattsResponse>) => Promise<VattsResponse> | VattsResponse;
203
201
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vatts",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-alpha.2",
4
4
  "description": "Vatts.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "itsmuzin",