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

chore(TS): migrate Pattern #8255

Merged
merged 15 commits into from
Sep 11, 2022
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.github/
.nyc_output/
cli_output/
lib/*.jar
lib/*.png
coverage/
Expand Down
4 changes: 2 additions & 2 deletions scripts/transform_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function findClassBase(raw, regex) {
const rawObject = findObject(raw, '{', '}', result.index);
const NS = namespace.slice(0, namespace.lastIndexOf('.'));
const { fabric } = require(wd);
const klass = fabric.util.resolveNamespace(NS === 'fabric' ? null : NS)[name];
// const klass = fabric.util.resolveNamespace(NS === 'fabric' ? null : NS)[name];
return {
name,
namespace,
Expand All @@ -133,7 +133,7 @@ function findClassBase(raw, regex) {
value: match
},
...rawObject,
klass
// klass
};
}

Expand Down
3 changes: 2 additions & 1 deletion src/__types__.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*/
export type Shadow = any;
export type Canvas = any;
export type Rect = any;
export type Rect = any;
export type TObject = any;
Loading