Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
Koishi Nestjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
Koishi Nestjs
Commits
9f9666bb
Commit
9f9666bb
authored
Nov 17, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use noImplicitOverride
parent
e6412639
Pipeline
#6891
passed with stages
in 47 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
17 deletions
+24
-17
src/koishi.service.ts
src/koishi.service.ts
+11
-8
src/utility/replaced-context.ts
src/utility/replaced-context.ts
+11
-8
tsconfig.json
tsconfig.json
+2
-1
No files found.
src/koishi.service.ts
View file @
9f9666bb
...
...
@@ -100,39 +100,42 @@ export class KoishiService
return
this
.
cloneContext
(()
=>
true
,
interceptors
);
}
any
()
{
override
any
()
{
return
this
.
cloneContext
(()
=>
true
);
}
never
()
{
override
never
()
{
return
this
.
cloneContext
(()
=>
false
);
}
union
(
arg
:
Filter
|
Context
)
{
override
union
(
arg
:
Filter
|
Context
)
{
const
filter
=
typeof
arg
===
'
function
'
?
arg
:
arg
.
filter
;
return
this
.
cloneContext
((
s
)
=>
this
.
filter
(
s
)
||
filter
(
s
));
}
intersect
(
arg
:
Filter
|
Context
)
{
override
intersect
(
arg
:
Filter
|
Context
)
{
const
filter
=
typeof
arg
===
'
function
'
?
arg
:
arg
.
filter
;
return
this
.
cloneContext
((
s
)
=>
this
.
filter
(
s
)
&&
filter
(
s
));
}
except
(
arg
:
Filter
|
Context
)
{
override
except
(
arg
:
Filter
|
Context
)
{
const
filter
=
typeof
arg
===
'
function
'
?
arg
:
arg
.
filter
;
return
this
.
cloneContext
((
s
)
=>
this
.
filter
(
s
)
&&
!
filter
(
s
));
}
command
<
D
extends
string
>
(
override
command
<
D
extends
string
>
(
def
:
D
,
config
?:
Command
.
Config
,
):
Command
<
never
,
never
,
Argv
.
ArgumentType
<
D
>>
;
command
<
D
extends
string
>
(
override
command
<
D
extends
string
>
(
def
:
D
,
desc
:
string
,
config
?:
Command
.
Config
,
):
Command
<
never
,
never
,
Argv
.
ArgumentType
<
D
>>
;
command
(
def
:
string
,
...
args
:
[
Command
.
Config
?]
|
[
string
,
Command
.
Config
?])
{
override
command
(
def
:
string
,
...
args
:
[
Command
.
Config
?]
|
[
string
,
Command
.
Config
?]
)
{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const
cmd
=
super
.
command
(
def
,
...
args
);
...
...
src/utility/replaced-context.ts
View file @
9f9666bb
...
...
@@ -28,39 +28,42 @@ export class ReplacedContext extends Context {
return
this
.
cloneContext
(
this
.
filter
,
interceptors
);
}
any
()
{
override
any
()
{
return
this
.
cloneContext
(()
=>
true
);
}
never
()
{
override
never
()
{
return
this
.
cloneContext
(()
=>
false
);
}
union
(
arg
:
Filter
|
Context
)
{
override
union
(
arg
:
Filter
|
Context
)
{
const
filter
=
typeof
arg
===
'
function
'
?
arg
:
arg
.
filter
;
return
this
.
cloneContext
((
s
)
=>
this
.
filter
(
s
)
||
filter
(
s
));
}
intersect
(
arg
:
Filter
|
Context
)
{
override
intersect
(
arg
:
Filter
|
Context
)
{
const
filter
=
typeof
arg
===
'
function
'
?
arg
:
arg
.
filter
;
return
this
.
cloneContext
((
s
)
=>
this
.
filter
(
s
)
&&
filter
(
s
));
}
except
(
arg
:
Filter
|
Context
)
{
override
except
(
arg
:
Filter
|
Context
)
{
const
filter
=
typeof
arg
===
'
function
'
?
arg
:
arg
.
filter
;
return
this
.
cloneContext
((
s
)
=>
this
.
filter
(
s
)
&&
!
filter
(
s
));
}
command
<
D
extends
string
>
(
override
command
<
D
extends
string
>
(
def
:
D
,
config
?:
Command
.
Config
,
):
Command
<
never
,
never
,
Argv
.
ArgumentType
<
D
>>
;
command
<
D
extends
string
>
(
override
command
<
D
extends
string
>
(
def
:
D
,
desc
:
string
,
config
?:
Command
.
Config
,
):
Command
<
never
,
never
,
Argv
.
ArgumentType
<
D
>>
;
command
(
def
:
string
,
...
args
:
[
Command
.
Config
?]
|
[
string
,
Command
.
Config
?])
{
override
command
(
def
:
string
,
...
args
:
[
Command
.
Config
?]
|
[
string
,
Command
.
Config
?]
)
{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const
cmd
=
super
.
command
(
def
,
...
args
);
...
...
tsconfig.json
View file @
9f9666bb
...
...
@@ -8,7 +8,8 @@
"experimentalDecorators"
:
true
,
"declaration"
:
true
,
"sourceMap"
:
true
,
"skipLibCheck"
:
true
"skipLibCheck"
:
true
,
"noImplicitOverride"
:
true
},
"compileOnSave"
:
true
,
"allowJs"
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment