Skip to content

Inaccessible static objects #28

@lm913

Description

@lm913

In all SaveOptions the static objects are not accessible when instantiating a SaveOptions object

Example:

let saveOpts = new TiffSaveOptions();
saveOpts.alphaChannels = false;  // ts error: Property 'alphaChannels' does not exist on type 'TiffSaveOptions'.

Should update to:

declare class TiffSaveOptions {
	/**
	 * If true, the alpha channels are saved.
	 */
	static alphaChannels: boolean;
        alphaChannels: boolean;

	/**
	 * If true, the annotations are saved.
	 */
	static annotations: boolean;
	annotations: boolean;

        ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions