File tree 3 files changed +2
-4
lines changed
tests/baselines/reference/api 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -9458,6 +9458,7 @@ export function hasTabstop(node: Node): boolean {
9458
9458
return getSnippetElement ( node ) ?. kind === SnippetKind . TabStop ;
9459
9459
}
9460
9460
9461
+ /** @internal */
9461
9462
export function isJSDocOptionalParameter ( node : ParameterDeclaration ) {
9462
9463
return isInJSFile ( node ) && (
9463
9464
// node.type should only be a JSDocOptionalType when node is a parameter of a JSDocFunctionType
@@ -9466,6 +9467,7 @@ export function isJSDocOptionalParameter(node: ParameterDeclaration) {
9466
9467
isBracketed || ! ! typeExpression && typeExpression . type . kind === SyntaxKind . JSDocOptionalType ) ) ;
9467
9468
}
9468
9469
9470
+ /** @internal */
9469
9471
export function isOptionalDeclaration ( declaration : Declaration ) : boolean {
9470
9472
switch ( declaration . kind ) {
9471
9473
case SyntaxKind . PropertyDeclaration :
Original file line number Diff line number Diff line change @@ -8795,8 +8795,6 @@ declare namespace ts {
8795
8795
name: Identifier;
8796
8796
};
8797
8797
function emitModuleKindIsNonNodeESM(moduleKind: ModuleKind): boolean;
8798
- function isJSDocOptionalParameter(node: ParameterDeclaration): boolean;
8799
- function isOptionalDeclaration(declaration: Declaration): boolean;
8800
8798
function createUnparsedSourceFile(text: string): UnparsedSource;
8801
8799
function createUnparsedSourceFile(inputFile: InputFiles, type: "js" | "dts", stripInternal?: boolean): UnparsedSource;
8802
8800
function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource;
Original file line number Diff line number Diff line change @@ -4860,8 +4860,6 @@ declare namespace ts {
4860
4860
name : Identifier ;
4861
4861
} ;
4862
4862
function emitModuleKindIsNonNodeESM ( moduleKind : ModuleKind ) : boolean ;
4863
- function isJSDocOptionalParameter ( node : ParameterDeclaration ) : boolean ;
4864
- function isOptionalDeclaration ( declaration : Declaration ) : boolean ;
4865
4863
function createUnparsedSourceFile ( text : string ) : UnparsedSource ;
4866
4864
function createUnparsedSourceFile ( inputFile : InputFiles , type : "js" | "dts" , stripInternal ?: boolean ) : UnparsedSource ;
4867
4865
function createUnparsedSourceFile ( text : string , mapPath : string | undefined , map : string | undefined ) : UnparsedSource ;
You can’t perform that action at this time.
0 commit comments