mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 05:59:30 +08:00
20 lines
No EOL
627 B
Text
20 lines
No EOL
627 B
Text
import * as ts from 'typescript';
|
|
export interface ReadonlynessOptions {
|
|
readonly treatMethodsAsReadonly?: boolean;
|
|
}
|
|
export declare const readonlynessOptionsSchema: {
|
|
type: string;
|
|
additionalProperties: boolean;
|
|
properties: {
|
|
treatMethodsAsReadonly: {
|
|
type: string;
|
|
};
|
|
};
|
|
};
|
|
export declare const readonlynessOptionsDefaults: ReadonlynessOptions;
|
|
/**
|
|
* Checks if the given type is readonly
|
|
*/
|
|
declare function isTypeReadonly(checker: ts.TypeChecker, type: ts.Type, options?: ReadonlynessOptions): boolean;
|
|
export { isTypeReadonly };
|
|
//# sourceMappingURL=isTypeReadonly.d.ts.map |