mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-16 16:02:43 -05:00
Update dependencies (#63156)
This commit is contained in:
@@ -227,7 +227,7 @@ const unset = Symbol();
|
||||
* @returns {() => T}
|
||||
*/
|
||||
export function memoize(fn) {
|
||||
/** @type {T | unset} */
|
||||
/** @type {T | typeof unset} */
|
||||
let value = unset;
|
||||
return () => {
|
||||
if (value === unset) {
|
||||
|
||||
@@ -15,7 +15,7 @@ const unset = Symbol();
|
||||
* @returns {() => T}
|
||||
*/
|
||||
function memoize(fn) {
|
||||
/** @type {T | unset} */
|
||||
/** @type {T | typeof unset} */
|
||||
let value = unset;
|
||||
return () => {
|
||||
if (value === unset) {
|
||||
@@ -43,7 +43,7 @@ module.exports = createRule({
|
||||
defaultOptions: [],
|
||||
|
||||
create(context) {
|
||||
const sourceCode = context.getSourceCode();
|
||||
const sourceCode = context.sourceCode;
|
||||
const sourceCodeText = sourceCode.getText();
|
||||
|
||||
/** @type {(name: string) => boolean} */
|
||||
|
||||
@@ -24,7 +24,7 @@ module.exports = createRule({
|
||||
defaultOptions: [],
|
||||
|
||||
create(context) {
|
||||
const sourceCode = context.getSourceCode();
|
||||
const sourceCode = context.sourceCode;
|
||||
const atInternal = "@internal";
|
||||
const jsdocStart = "/**";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user