mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
update to export namespace in ambient module
This commit is contained in:
Vendored
+22
-19
@@ -5,24 +5,8 @@
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
interface JQuery {
|
||||
setFieldError: (name: string, msg: string) => void;
|
||||
serializeMap: () => { [index: string]: any };
|
||||
applyErrors: (status: ssutils.ResponseStatus, opt?: ssutils.ApplyErrorsOptions) => JQuery;
|
||||
clearErrors: () => JQuery;
|
||||
bindForm: (opt?: ssutils.ApplyErrorsOptions) => JQuery;
|
||||
applyValues: (values: { [index: string]: string }) => JQuery;
|
||||
bindHandlers: (handlers: { [index: string]: Function }) => JQuery;
|
||||
setActiveLinks: () => JQuery;
|
||||
handleServerEvents: (opt?: ssutils.HandleServerEventsOptions) => void;
|
||||
}
|
||||
declare namespace ssutils {
|
||||
|
||||
interface JQueryStatic {
|
||||
ss: ssutils.Static;
|
||||
}
|
||||
|
||||
declare module ssutils
|
||||
{
|
||||
interface Static {
|
||||
handlers: { [index: string]: Function };
|
||||
onSubmitDisable: string;
|
||||
@@ -96,11 +80,11 @@ declare module ssutils
|
||||
channels: string;
|
||||
profileUrl: string;
|
||||
}
|
||||
|
||||
|
||||
interface SSEHeartbeat extends SSECommand { }
|
||||
interface SSEJoin extends SSECommand { }
|
||||
interface SSELeave extends SSECommand { }
|
||||
|
||||
|
||||
interface SSEConnect extends SSECommand {
|
||||
id: string;
|
||||
unRegisterUrl: string;
|
||||
@@ -117,3 +101,22 @@ declare module ssutils
|
||||
}
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
setFieldError: (name: string, msg: string) => void;
|
||||
serializeMap: () => { [index: string]: any };
|
||||
applyErrors: (status: ssutils.ResponseStatus, opt?: ssutils.ApplyErrorsOptions) => JQuery;
|
||||
clearErrors: () => JQuery;
|
||||
bindForm: (opt?: ssutils.ApplyErrorsOptions) => JQuery;
|
||||
applyValues: (values: { [index: string]: string }) => JQuery;
|
||||
bindHandlers: (handlers: { [index: string]: Function }) => JQuery;
|
||||
setActiveLinks: () => JQuery;
|
||||
handleServerEvents: (opt?: ssutils.HandleServerEventsOptions) => void;
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
ss: ssutils.Static;
|
||||
}
|
||||
|
||||
declare module "ss-utils" {
|
||||
export = ssutils;
|
||||
}
|
||||
Reference in New Issue
Block a user