Remove an unnecessary type assertion (#12666)
This commit is contained in:
parent
417852779f
commit
5cc3d3c873
|
@ -493,8 +493,7 @@ export class ActivityPubServerService {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public createServer(fastify: FastifyInstance, options: FastifyPluginOptions, done: (err?: Error) => void) {
|
public createServer(fastify: FastifyInstance, options: FastifyPluginOptions, done: (err?: Error) => void) {
|
||||||
// addConstraintStrategy の型定義がおかしいため
|
fastify.addConstraintStrategy({
|
||||||
(fastify.addConstraintStrategy as any)({
|
|
||||||
name: 'apOrHtml',
|
name: 'apOrHtml',
|
||||||
storage() {
|
storage() {
|
||||||
const store = {} as any;
|
const store = {} as any;
|
||||||
|
|
Loading…
Reference in New Issue