Test if the given symbol has a readonly declaration.
declare const symbol: ts.Symbol;declare const typeChecker: ts.TypeChecker;if (symbolHasReadonlyDeclaration(symbol, typeChecker)) { // ...} Copy
declare const symbol: ts.Symbol;declare const typeChecker: ts.TypeChecker;if (symbolHasReadonlyDeclaration(symbol, typeChecker)) { // ...}
Test if the given symbol has a readonly declaration.