You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
394 B

  1. export class Catalog {
  2. constructor(
  3. public name: string,
  4. public example: string,
  5. public accept_types: string,
  6. public properties: object
  7. ) {}
  8. static valueOf(
  9. { name, example, accept_types, properties }:
  10. { name: string, example: string, accept_types: string, properties: object }
  11. ): Catalog {
  12. return new Catalog(name, example, accept_types, properties)
  13. }
  14. }