Skip to content

Commit 5582a73

Browse files
committed
use proper array notation
1 parent 8260fc9 commit 5582a73

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/robotlegs/bender/extensions/contextView/createjsPatch/createjs-patch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function applyCreateJSPatch(stage: createjs.Stage) {
6262
};
6363

6464
createjs.Container.prototype.addChildAt = function patchedAddChildAt<T extends createjs.DisplayObject>(
65-
...childOrIndex: Array<T | number>
65+
...childOrIndex: T[] | number[]
6666
): T {
6767
for (let i = 0, len = arguments.length - 1; i < len; i++) {
6868
const object = arguments[i];

src/robotlegs/bender/extensions/mediatorMap/impl/MediatorFactory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ export class MediatorFactory {
138138
});
139139
}
140140

141-
private requiredTypesFor(filter: ITypeFilter, type: IClass<any>): Array<IType<any>> {
142-
let requiredTypes: Array<IType<any>> = filter.allOfTypes.concat(filter.anyOfTypes);
141+
private requiredTypesFor(filter: ITypeFilter, type: IClass<any>): IType<any>[] {
142+
let requiredTypes: IType<any>[] = filter.allOfTypes.concat(filter.anyOfTypes);
143143

144144
if (requiredTypes.indexOf(type) === -1) {
145145
requiredTypes.push(type);

0 commit comments

Comments
 (0)