@itwin/ecschema-metadata
Version:
ECObjects core concepts in typescript
30 lines • 1.08 kB
TypeScript
/** @packageDocumentation
* @module Metadata
*/
import { Schema } from "./Schema";
/** @public @preview */
export interface CustomAttribute {
className: string;
[propName: string]: any;
}
/**
* A collection of custom attributes, accessed by full class names in the format `SchemaName.ClassName`.
* Iterates over, checks, and retrieves attributes. Class names are case-insensitive, separated by a dot (`.`).
* @param className - The full class name.
* @returns Iterator, boolean, or custom attribute.
* @public @preview
*/
export interface CustomAttributeSet {
[Symbol.iterator]: () => IterableIterator<[string, CustomAttribute]>;
has(className: string): boolean;
get(className: string): CustomAttribute | undefined;
}
/** @public @preview */
export interface CustomAttributeContainerProps {
customAttributes?: CustomAttributeSet;
fullName: string;
schema: Schema;
}
/** @internal */
export declare function serializeCustomAttributes(customAttributes: CustomAttributeSet | undefined): any[] | undefined;
//# sourceMappingURL=CustomAttribute.d.ts.map