Better Typing and Optimizations
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user