mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-29 15:44:31 +00:00
Increase allowed mixin params to Ember.Component.extend (#19594)
This commit is contained in:
committed by
Mohamed Hegazy
parent
06866d14e7
commit
172dd79c16
@@ -182,7 +182,27 @@ const mix2 = Ember.Mixin.create({
|
||||
bar: 2,
|
||||
});
|
||||
|
||||
const component1 = Ember.Component.extend(mix1, mix2, {
|
||||
const mix3 = Ember.Mixin.create({
|
||||
foo: 3,
|
||||
});
|
||||
|
||||
const mix4 = Ember.Mixin.create({
|
||||
bar: 4,
|
||||
});
|
||||
|
||||
const mix5 = Ember.Mixin.create({
|
||||
foo: 5,
|
||||
});
|
||||
|
||||
const mix6 = Ember.Mixin.create({
|
||||
bar: 6,
|
||||
});
|
||||
|
||||
const mix7 = Ember.Mixin.create({
|
||||
foo: 7,
|
||||
});
|
||||
|
||||
const component1 = Ember.Component.extend(mix1, mix2, mix3, mix4, mix5, mix6, mix7, {
|
||||
lyft: Ember.inject.service(),
|
||||
cars: Ember.computed.readOnly('lyft.cars'),
|
||||
});
|
||||
|
||||
5
types/ember/index.d.ts
vendored
5
types/ember/index.d.ts
vendored
@@ -913,6 +913,11 @@ declare namespace Ember {
|
||||
static extend<T>(args?: CoreObjectArguments): T;
|
||||
static extend<T>(mixin1: Mixin, args?: CoreObjectArguments): T;
|
||||
static extend<T>(mixin1: Mixin, mixin2: Mixin, args?: CoreObjectArguments): T;
|
||||
static extend<T>(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, args?: CoreObjectArguments): T;
|
||||
static extend<T>(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, mixin4: Mixin, args?: CoreObjectArguments): T;
|
||||
static extend<T>(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, mixin4: Mixin, mixin5: Mixin, args?: CoreObjectArguments): T;
|
||||
static extend<T>(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, mixin4: Mixin, mixin5: Mixin, mixin6: Mixin, args?: CoreObjectArguments): T;
|
||||
static extend<T>(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, mixin4: Mixin, mixin5: Mixin, mixin6: Mixin, mixin7: Mixin, args?: CoreObjectArguments): T;
|
||||
|
||||
/**
|
||||
Creates a new subclass.
|
||||
|
||||
Reference in New Issue
Block a user