Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccessible static objects #28

Closed
lm913 opened this issue Dec 19, 2017 · 5 comments
Closed

Inaccessible static objects #28

lm913 opened this issue Dec 19, 2017 · 5 comments

Comments

@lm913
Copy link
Contributor

lm913 commented Dec 19, 2017

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;

        ...
@lm913
Copy link
Contributor Author

lm913 commented Dec 19, 2017

This is also an issue with ExportOptionsSaveForWeb

@pravdomil
Copy link
Collaborator

pravdomil commented Dec 20, 2017

fixed in e143243

run npm up

for ExportOptionsSaveForWeb could you send me code sample?

@lm913
Copy link
Contributor Author

lm913 commented Dec 20, 2017

const exportOpts = new ExportOptionsSaveForWeb();
exportOpts.format = SaveDocumentType.PNG; // ts error: Property 'format' does not exist on type 'ExportOptionsSaveForWeb'.

@pravdomil
Copy link
Collaborator

fixed in 0d08386

@3xau1o
Copy link

3xau1o commented Feb 11, 2023

seems this is still the case in 2023 for a lot of stuff, including ExportOptionsPNG24 in illustrator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants