upd: note note
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user