mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-01 08:18:05 +09:00
Create new type definition for 'escape-regexp' (#4058)
This commit is contained in:
parent
316de8f705
commit
23f58bb6a4
7
src/@types/escape-regexp.d.ts
vendored
Normal file
7
src/@types/escape-regexp.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
declare module 'escape-regexp' {
|
||||
function escapeRegExp(str: string): string;
|
||||
|
||||
namespace escapeRegExp {} // Hack
|
||||
|
||||
export = escapeRegExp;
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import $ from 'cafy';
|
||||
import Hashtag from '../../../../models/hashtag';
|
||||
import define from '../../define';
|
||||
const escapeRegexp = require('escape-regexp');
|
||||
import * as escapeRegexp from 'escape-regexp';
|
||||
|
||||
export const meta = {
|
||||
desc: {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import $ from 'cafy';
|
||||
const escapeRegexp = require('escape-regexp');
|
||||
import * as escapeRegexp from 'escape-regexp';
|
||||
import User, { pack, validateUsername, IUser } from '../../../../models/user';
|
||||
import define from '../../define';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user