fix: temporary fix ts errors by using any type

This commit is contained in:
divlo
2020-12-29 01:55:44 +01:00
parent 638c86708e
commit e328a83a18
3 changed files with 199 additions and 142 deletions

View File

@ -46,7 +46,7 @@ describe('authorizer', () => {
test('auth headers are supported', (done) => {
const socket = io.connect('http://localhost:9000', {
// @ts-ignore
// @ts-expect-error
extraHeaders: { Authorization: `Bearer ${token}` }
})
socket.on('connect', () => {
@ -86,7 +86,7 @@ describe('authorizer', () => {
it('auth headers are supported', (done) => {
const socket = io.connect('http://localhost:9000', {
// @ts-ignore
// @ts-expect-error
extraHeaders: { Authorization: `Bearer ${token}` }
})
socket.on('connect', () => {
@ -108,7 +108,7 @@ describe('authorizer', () => {
})
describe('unsigned token', () => {
let token =
const token =
'eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJuYW1lIjoiSm9obiBGb28ifQ.'
beforeEach((done) => {

View File

@ -14,7 +14,7 @@ interface Socket {
const socket: Socket = {
io: null,
init(httpServer) {
init (httpServer) {
socket.io = socketIo(httpServer)
}
}