Files
kjol/tools/tsgo/internal/fourslash/tests/manual/jsDocFunctionSignatures12_test.go
2026-07-09 16:50:43 -04:00

34 lines
919 B
Go

package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestJsDocFunctionSignatures12(t *testing.T) {
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @allowJs: true
// @Filename: jsDocFunctionSignatures.js
/**
* @param {{
* stringProp: string,
* numProp: number,
* boolProp: boolean,
* anyProp: any,
* anotherAnyProp: any,
* functionProp: (arg0: string, arg1: any) => any
* }} o
*/
function f1(o) {
o/**/;
}`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.GoToMarker(t, "")
f.VerifyQuickInfoIs(t, "(parameter) o: {\n stringProp: string;\n numProp: number;\n boolProp: boolean;\n anyProp: any;\n anotherAnyProp: any;\n functionProp: (arg0: string, arg1: any) => any;\n}", "")
}