#using typeOrm what is the appropriate type for entity

2 messages · Page 1 of 1 (latest)

abstract plover
#

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

abstract plover
#

I tried a lot. But never thought simple. Function Is the correct Type to use (at least in my case)