diff --git a/models/Artboard/index.d.ts b/models/Artboard/index.d.ts index 9e7cb65..6f751e5 100644 --- a/models/Artboard/index.d.ts +++ b/models/Artboard/index.d.ts @@ -4,7 +4,6 @@ import RulerData from '../RulerData'; declare class Artboard extends Group { _class: 'artboard'; - shouldBreakMaskChain: boolean; backgroundColor: Color; hasBackgroundColor: boolean; horizontalRulerData: RulerData; diff --git a/models/Bitmap/index.d.ts b/models/Bitmap/index.d.ts index 07d59da..32b79b6 100644 --- a/models/Bitmap/index.d.ts +++ b/models/Bitmap/index.d.ts @@ -11,58 +11,24 @@ * and limitations under the License. */ - -export interface BitmapLayer { - _class?: 'bitmapLayer' - booleanOperation?: number - clippingMask: Record - clippingMaskMode?: number - do_objectID?: string - exportOptions?: { - [k: string]: any - } - fillReplacesImage?: boolean - flow?: { - [k: string]: any - } - frame?: { - [k: string]: any - } - hasClippingMask?: boolean - image?: { - [k: string]: any - } - imageHash?: { - [k: string]: any - } +import Layer = require('../Layer'); + +declare class Bitmap extends Layer { + _class: 'bitmap'; + clippingMask: Record; + clippingMaskMode?: number; + fillReplacesImage?: boolean; + flow?: Record; + hasClippingMask?: boolean; + image?: Record; + imageHash?: Record; /** * The scale the image was imported with into Sketch. This can be derived on import from the DPI of the image or the suffixes (@2x) of the filename. On legacy documents defaults to 0, which is meant to be the default image DPI of 72. */ - intendedDPI?: number - isFixedToViewport?: boolean - isFlippedHorizontal?: boolean - isFlippedVertical?: boolean - isLocked?: boolean - isVisible?: boolean - layerListExpandedType?: number - name?: { - [k: string]: any - } - nameIsFixed?: boolean - originalObjectID?: { - [k: string]: any - } - resizingConstraint?: number - resizingType?: number - rotation?: number - sharedStyleID?: { - [k: string]: any - } - shouldBreakMaskChain?: boolean - style?: { - [k: string]: any - } - userInfo?: { - [k: string]: any - } -} \ No newline at end of file + intendedDPI?: number; + originalObjectID?: Record; + sharedStyleID?: Record; + userInfo?: Record +} + +export = Bitmap; diff --git a/models/Group/index.d.ts b/models/Group/index.d.ts index e4638d8..137abd5 100644 --- a/models/Group/index.d.ts +++ b/models/Group/index.d.ts @@ -2,8 +2,6 @@ import Layer from '../Layer'; declare class Group extends Layer { _class: string; - layerListExpandedType: number; - resizingConstraint: number; hasClickThrough: boolean; constructor(args?: any, json?: any); } diff --git a/models/Layer/index.d.ts b/models/Layer/index.d.ts index 894ee9b..20db48d 100644 --- a/models/Layer/index.d.ts +++ b/models/Layer/index.d.ts @@ -15,7 +15,6 @@ declare class Layer { isFlippedVertical: boolean; isLocked: boolean; isVisible: boolean; - layerListExpandedType: number; name: string; nameIsFixed: boolean; resizingConstraint: number; diff --git a/models/Page/index.d.ts b/models/Page/index.d.ts index 21b7f62..ec32131 100644 --- a/models/Page/index.d.ts +++ b/models/Page/index.d.ts @@ -6,8 +6,6 @@ declare class Page extends Group { constructor(args?: any, json?: any); - getID(): string; - getArtboards(predicate?: string | RegExp): Artboard[]; getArtboard(name: string): Artboard | undefined; diff --git a/models/ShapeGroup/index.d.ts b/models/ShapeGroup/index.d.ts index 6d568b6..d096f62 100644 --- a/models/ShapeGroup/index.d.ts +++ b/models/ShapeGroup/index.d.ts @@ -8,7 +8,6 @@ declare class ShapeGroup extends Layer { static ShapePath(args: any): ShapeGroup; _class: 'shapeGroup'; - layerListExpandedType: number; clippingMaskMode: number; hasClippingMask: boolean; windingRule: number;