@arche-mc2/arche-controls
Version:
We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get
35 lines (34 loc) • 1.15 kB
TypeScript
export interface StyledComponentProps {
innerRef?: (comp: any) => void;
}
export interface TestableComponentProps {
dataTestId?: string;
}
export declare function getTestableComponentProps(props: TestableComponentProps): {
"data-testid"?: string;
};
export declare function FilterProps<T>(refObject: any, propsObject: any): T;
export interface IDictionary<_KeyType, _ValueType> {
get(key: _KeyType): _ValueType;
set(key: _KeyType, value: _ValueType): void;
unset(key: _KeyType): void;
containsKey(key: _KeyType): boolean;
keys(): _KeyType[];
values(): _ValueType[];
}
export declare class Dictionary<_KeyType, _ValueType> implements IDictionary<_KeyType, _ValueType> {
_keys: _KeyType[];
_values: _ValueType[];
_dictionary: any;
constructor(init?: {
key: _KeyType;
value: _ValueType;
}[]);
set(key: _KeyType, value: _ValueType): void;
unset(key: _KeyType): void;
keys(): _KeyType[];
values(): any[];
containsKey(key: _KeyType): boolean;
toLookup(): IDictionary<_KeyType, _ValueType>;
get(key: _KeyType): _ValueType;
}