mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 17:08:21 +08:00
Make properties of IOptions optional.
According to the [documentation](http://www.jointjs.com/api#joint.dia.Paper), the options **may** contain any of these properties, and as such they should not be required by the interface.
This commit is contained in:
12
jointjs/jointjs.d.ts
vendored
12
jointjs/jointjs.d.ts
vendored
@@ -60,12 +60,12 @@ declare module joint {
|
||||
}
|
||||
|
||||
interface IOptions {
|
||||
width: number;
|
||||
height: number;
|
||||
gridSize: number;
|
||||
perpendicularLinks: boolean;
|
||||
elementView: ElementView;
|
||||
linkView: LinkView;
|
||||
width?: number;
|
||||
height?: number;
|
||||
gridSize?: number;
|
||||
perpendicularLinks?: boolean;
|
||||
elementView?: ElementView;
|
||||
linkView?: LinkView;
|
||||
}
|
||||
|
||||
class Paper extends Backbone.View<Backbone.Model> {
|
||||
|
||||
Reference in New Issue
Block a user