Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Dec 8, 2024
1 parent 392abe6 commit 73a6b7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions types/swagger-ui-vendor-extensions.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { OpenAPIV2, OpenAPIV3 } from 'openapi-types'
import { expectAssignable } from 'tsd'

const xTokenNameOpenAPIv3: OpenAPIV3.Document = {
expectAssignable<OpenAPIV3.Document>({
openapi: '3.0.0',
info: {
version: '1.0.0',
Expand All @@ -21,9 +22,9 @@ const xTokenNameOpenAPIv3: OpenAPIV3.Document = {
}
},
paths: {}
}
})

const xTokenNameOpenAPIv2: OpenAPIV2.Document = {
expectAssignable<OpenAPIV2.Document>({
swagger: '2.0.0',
info: {
title: 'Test OpenApiv2 specification',
Expand Down Expand Up @@ -61,9 +62,9 @@ const xTokenNameOpenAPIv2: OpenAPIV2.Document = {
},
},
paths: {}
}
})

const xExampleOpenAPIv2: OpenAPIV2.Document = {
expectAssignable<OpenAPIV2.Document>({
swagger: '2.0.0',
info: {
title: 'Test OpenApiv2 specification',
Expand Down Expand Up @@ -109,4 +110,4 @@ const xExampleOpenAPIv2: OpenAPIV2.Document = {
}
}
}
}
})
1 change: 1 addition & 0 deletions types/types.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ app
initOAuth
})
.ready((err) => {
expectType<Error | null>(err)
app.swagger()
})

Expand Down

0 comments on commit 73a6b7b

Please sign in to comment.