mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
change Function to () => void
This commit is contained in:
Vendored
+4
-4
@@ -90,7 +90,7 @@ declare module 'dplayer' {
|
||||
export interface DPlayerContextMenuItem {
|
||||
text: string;
|
||||
link?: string;
|
||||
click?: Function;
|
||||
click?: () => void;
|
||||
}
|
||||
|
||||
export interface DPlayerHighLightItem {
|
||||
@@ -125,9 +125,9 @@ declare module 'dplayer' {
|
||||
}
|
||||
|
||||
export interface DPlayerAPIBackend {
|
||||
read(endpoint: any, callback: Function): void;
|
||||
read(endpoint: any, callback: () => void): void;
|
||||
|
||||
send(endpoint: any, danmakuData: DPlayerDanmakuItem, callback: Function): void;
|
||||
send(endpoint: any, danmakuData: DPlayerDanmakuItem, callback: () => void): void;
|
||||
}
|
||||
|
||||
export default class DPlayer {
|
||||
@@ -143,7 +143,7 @@ declare module 'dplayer' {
|
||||
|
||||
toggle(): void;
|
||||
|
||||
on(event: DPlayerEvents, handler: Function): void;
|
||||
on(event: DPlayerEvents, handler: () => void): void;
|
||||
|
||||
switchVideo(video: DPlayerVideo, danmaku: DPlayerDanmaku): void;
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"lib": ["es5", "es6", "dom"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
|
||||
Reference in New Issue
Block a user