upd: note note

This commit is contained in:
amel
2024-08-29 11:46:57 +08:00
parent ecac5b20ea
commit 9eb2b1e4af

View File

@@ -34,4 +34,32 @@ export interface IDataHomeDiskusi {
title: string
date: string
user: string
}
}
// NOTE :: CARA LAIN BUAT INTERFACE PAKE PRISMA
// type User = {} & Prisma.UserUncheckedCreateInput
// type User2 = {} & Prisma.UserGetPayload<{select: {id: true, name: true}}>
// const user = {} as User
// const user2 = {} as User2
// NOTE :: CARA LAIN BUAT NYIMPEN DATA PAKE STATIC (LAYOUT>>CHILDREN) CUMA BISA CLIENT TO CLIENT ATAU SERVER TO SERVER
// class Data {
// static nama = ""
// static set(val: string){
// Data.nama = val
// }
// }
// class Apa {
// nama = ""
// constructor(nama: string){
// this.nama = nama
// }
// }
// const aa = new Apa("aa")