@shko.online/componentframework-mock
Version:
Mocking library to help with testing PowerApps Component Framework Components
30 lines (29 loc) • 1.07 kB
TypeScript
import type { SinonStub } from 'sinon';
import type { ShkoOnline } from '../ShkoOnline';
export declare class AttributeMetadataCollection implements ShkoOnline.AttributeMetadataCollection {
_attributes: ShkoOnline.AttributeMetadata[];
add: SinonStub<[
]>;
get: SinonStub<[
/*logicalName*/ string
], ShkoOnline.AttributeMetadata | undefined>;
getAll: SinonStub<[
], ShkoOnline.AttributeMetadata[]>;
getByFilter: SinonStub<[
], ShkoOnline.AttributeMetadata[]>;
getByName: SinonStub<[
/*name*/ string
], ShkoOnline.AttributeMetadata | undefined>;
getByIndex: SinonStub<[
/*index*/ number
], ShkoOnline.AttributeMetadata | undefined>;
getFirst: SinonStub<[
(attribute: ShkoOnline.AttributeMetadata) => boolean
], ShkoOnline.AttributeMetadata | undefined>;
getLength: SinonStub<[
], number>;
remove: SinonStub<[
]>;
constructor(attributes: ShkoOnline.AttributeMetadata[]);
}
//# sourceMappingURL=AttributeMetadataCollection.d.ts.map