persona-community-5/.pnpm-store/v3/files/b3/5f296d926bdfb607c2b82bacd0790dea6a456a7736f7de5a5d0b623a57bda85a7a48c60dff7cf55809b88b8463658e4a2500fd259cec348c1b92a66a937404
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

27 lines
899 B
Plaintext

import type { JSONSchema4 } from '@typescript-eslint/utils/json-schema';
import * as ts from 'typescript';
import type { TypeOrValueSpecifier } from './TypeOrValueSpecifier';
export interface ReadonlynessOptions {
readonly treatMethodsAsReadonly?: boolean;
readonly allow?: TypeOrValueSpecifier[];
}
export declare const readonlynessOptionsSchema: {
type: "object";
additionalProperties: false;
properties: {
treatMethodsAsReadonly: {
type: "boolean";
};
allow: {
type: "array";
items: JSONSchema4;
};
};
};
export declare const readonlynessOptionsDefaults: ReadonlynessOptions;
/**
* Checks if the given type is readonly
*/
declare function isTypeReadonly(program: ts.Program, type: ts.Type, options?: ReadonlynessOptions): boolean;
export { isTypeReadonly };
//# sourceMappingURL=isTypeReadonly.d.ts.map