2 messages · Page 1 of 1 (latest)
So when I declare some entity with @entity
@entity()
export class Name {
@PrimaryColumn()
id: number
@column()
name: string
}
and I want to pass this class as an argument somewhere like this somefunction(Name)
What would be the type of that param
I tried a lot. But never thought simple. Function Is the correct Type to use (at least in my case)