MCPcopy Create free account
hub / github.com/p2r3/convert / constructor

Method constructor

src/FormatHandler.ts:43–55  ·  view source on GitHub ↗
(
    name: string,
    format: string,
    extension: string,
    mime: string,
    category?: string[] | string
  )

Source from the content-addressed store, hash-verified

41 public readonly category?: string[] | string;
42
43 constructor(
44 name: string,
45 format: string,
46 extension: string,
47 mime: string,
48 category?: string[] | string
49 ) {
50 this.name = name
51 this.format = format
52 this.extension = extension
53 this.mime = mime
54 this.category = category
55 }
56
57 /**
58 * Returns `FileFormat` object that uses this format definition

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected