Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-decorators
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
1
Merge Requests
1
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-decorators
Commits
11abc4c9
Commit
11abc4c9
authored
Jan 23, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak
parent
31ac4021
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
src/decorators/decorators.ts
src/decorators/decorators.ts
+3
-3
src/decorators/index.ts
src/decorators/index.ts
+1
-0
tests/register.spec.ts
tests/register.spec.ts
+1
-1
tests/scope.spec.ts
tests/scope.spec.ts
+1
-1
No files found.
src/decorators.ts
→
src/decorators
/decorators
.ts
View file @
11abc4c9
...
...
@@ -7,11 +7,11 @@ import {
KoishiCommandPutDef
,
KoishiOnContextScope
,
OnContextFunction
,
}
from
'
./def
'
;
}
from
'
.
.
/def
'
;
import
'
reflect-metadata
'
;
import
{
Argv
,
Command
,
FieldCollector
,
Selection
,
Session
}
from
'
koishi
'
;
import
{
Metadata
}
from
'
./meta/metadata.decorators
'
;
import
{
CommandPut
,
DoRegister
}
from
'
./registry
'
;
import
{
Metadata
}
from
'
.
.
/meta/metadata.decorators
'
;
import
{
CommandPut
,
DoRegister
}
from
'
.
.
/registry
'
;
// Register method
...
...
src/decorators/index.ts
0 → 100644
View file @
11abc4c9
export
*
from
'
./decorators
'
;
tests/register.spec.ts
View file @
11abc4c9
...
...
@@ -4,7 +4,7 @@ import {
UseCommand
,
UseEvent
,
UseMiddleware
,
}
from
'
../src/decorators
'
;
}
from
'
../src/decorators
/decorators
'
;
import
{
App
,
Command
,
Next
,
Session
}
from
'
koishi
'
;
import
{
Registrar
}
from
'
../src/register
'
;
import
{
EventNameAndPrepend
}
from
'
../src/def
'
;
...
...
tests/scope.spec.ts
View file @
11abc4c9
import
{
OnGuild
,
OnPlatform
}
from
'
../src/decorators
'
;
import
{
OnGuild
,
OnPlatform
}
from
'
../src/decorators
/decorators
'
;
import
{
App
,
Session
}
from
'
koishi
'
;
import
{
Registrar
}
from
'
../src/register
'
;
...
...
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