-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps-dev): replace standard with neostandard (#148)
- Loading branch information
Showing
5 changed files
with
39 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
'use strict' | ||
|
||
module.exports = require('neostandard')({ | ||
ignores: require('neostandard').resolveIgnoresFromGitignore(), | ||
ts: true | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import { FastifyPluginCallback } from "fastify"; | ||
import { ToadScheduler } from "toad-scheduler"; | ||
import { FastifyPluginCallback } from 'fastify' | ||
import { ToadScheduler } from 'toad-scheduler' | ||
|
||
declare module "fastify" { | ||
declare module 'fastify' { | ||
interface FastifyInstance { | ||
scheduler: ToadScheduler; | ||
} | ||
} | ||
|
||
type FastifySchedule = FastifyPluginCallback; | ||
type FastifySchedule = FastifyPluginCallback | ||
|
||
declare namespace fastifySchedule { | ||
export const fastifySchedule: FastifySchedule | ||
export { fastifySchedule as default } | ||
} | ||
|
||
declare function fastifySchedule(...params: Parameters<FastifySchedule>): ReturnType<FastifySchedule> | ||
declare function fastifySchedule (...params: Parameters<FastifySchedule>): ReturnType<FastifySchedule> | ||
export = fastifySchedule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { FastifyInstance, FastifyPluginCallback } from "fastify"; | ||
import fastify from "fastify"; | ||
import { expectType } from "tsd"; | ||
import { FastifyInstance, FastifyPluginCallback } from 'fastify' | ||
import fastify from 'fastify' | ||
import { expectType } from 'tsd' | ||
|
||
import { fastifySchedule as fastifyScheduleNamed } from ".."; | ||
import fastifyScheduleDefault from ".."; | ||
import * as fastifyScheduleStar from ".."; | ||
import fastifyScheduleCjsImport = require(".."); | ||
const fastifyScheduleCjs = require("./"); | ||
import { fastifySchedule as fastifyScheduleNamed } from '..' | ||
import fastifyScheduleDefault from '..' | ||
import * as fastifyScheduleStar from '..' | ||
import fastifyScheduleCjsImport = require('..') | ||
const fastifyScheduleCjs = require('./') | ||
|
||
const app: FastifyInstance = fastify(); | ||
app.register(fastifyScheduleNamed); | ||
app.register(fastifyScheduleDefault); | ||
app.register(fastifyScheduleCjs); | ||
app.register(fastifyScheduleCjsImport.default); | ||
app.register(fastifyScheduleCjsImport.fastifySchedule); | ||
app.register(fastifyScheduleStar.default); | ||
app.register(fastifyScheduleStar.fastifySchedule); | ||
const app: FastifyInstance = fastify() | ||
app.register(fastifyScheduleNamed) | ||
app.register(fastifyScheduleDefault) | ||
app.register(fastifyScheduleCjs) | ||
app.register(fastifyScheduleCjsImport.default) | ||
app.register(fastifyScheduleCjsImport.fastifySchedule) | ||
app.register(fastifyScheduleStar.default) | ||
app.register(fastifyScheduleStar.fastifySchedule) | ||
|
||
expectType<FastifyPluginCallback>(fastifyScheduleNamed); | ||
expectType<FastifyPluginCallback>(fastifyScheduleDefault); | ||
expectType<FastifyPluginCallback>(fastifyScheduleCjsImport.default); | ||
expectType<FastifyPluginCallback>(fastifyScheduleCjsImport.fastifySchedule); | ||
expectType<FastifyPluginCallback>(fastifyScheduleStar.default); | ||
expectType<FastifyPluginCallback>(fastifyScheduleStar.fastifySchedule); | ||
expectType<any>(fastifyScheduleCjs); | ||
expectType<FastifyPluginCallback>(fastifyScheduleNamed) | ||
expectType<FastifyPluginCallback>(fastifyScheduleDefault) | ||
expectType<FastifyPluginCallback>(fastifyScheduleCjsImport.default) | ||
expectType<FastifyPluginCallback>(fastifyScheduleCjsImport.fastifySchedule) | ||
expectType<FastifyPluginCallback>(fastifyScheduleStar.default) | ||
expectType<FastifyPluginCallback>(fastifyScheduleStar.fastifySchedule) | ||
expectType<any>(fastifyScheduleCjs) |