Better Typing and Optimizations

This commit is contained in:
2023-12-29 07:03:08 -03:00
parent 83fd8f0f2c
commit 567308ebfb
21 changed files with 105 additions and 145 deletions

View File

@@ -1,5 +1,11 @@
export interface Stack {
name: string;
image: string;
description: string;
}
import { Type, type Static } from '@sinclair/typebox'
export const Stack = Type.Object({
name: Type.String(),
image: Type.String(),
description: Type.String()
});
export type Stack = Static<typeof Stack>;