mirror of
https://github.com/valentineus/webos-service-types.git
synced 2025-04-28 00:41:24 +03:00
Removed declare module
This commit is contained in:
parent
b8520170be
commit
a9584bd333
10
dist/activity-manager.d.ts
vendored
10
dist/activity-manager.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
import { IActivitySpec } from "./types";
|
||||
import { Service } from "./service";
|
||||
import { Subscription } from "./subscription";
|
||||
import { IActivitySpec } from "./types";
|
||||
|
||||
export interface ICreateDummyCallback {
|
||||
activity: { name: string };
|
||||
@ -8,24 +8,24 @@ export interface ICreateDummyCallback {
|
||||
}
|
||||
|
||||
export declare class ActivityManager {
|
||||
public constructor(service: Service, idleTimeout: number);
|
||||
|
||||
public readonly idleTimeout: number;
|
||||
|
||||
public readonly service: Service;
|
||||
|
||||
private readonly _activities: { [id: string]: Subscription };
|
||||
|
||||
public exitOnTimeout: boolean;
|
||||
|
||||
public useDummyActivity: boolean;
|
||||
|
||||
private readonly _activities: { [id: string]: Subscription };
|
||||
|
||||
private _counter: number;
|
||||
|
||||
private _dummyActivityId: number;
|
||||
|
||||
private _idleTimer: NodeJS.Timeout | null;
|
||||
|
||||
public constructor(service: Service, idleTimeout: number);
|
||||
|
||||
public adopt(activity: Record<string, any>, callback?: (payload: Record<string, any>) => void): void;
|
||||
|
||||
public complete(activity: Record<string, any>, options?: Record<string, any>, callback?: (payload: Record<string, any>) => void): boolean | void;
|
||||
|
4
dist/index.d.ts
vendored
4
dist/index.d.ts
vendored
@ -4,10 +4,6 @@ import { Method } from "./method";
|
||||
import { Service } from "./service";
|
||||
import { Subscription } from "./subscription";
|
||||
|
||||
declare module "webos-service" {
|
||||
export default Service;
|
||||
}
|
||||
|
||||
export {
|
||||
ActivityManager,
|
||||
Message,
|
||||
|
6
dist/message.d.ts
vendored
6
dist/message.d.ts
vendored
@ -2,9 +2,6 @@ import { ActivityManager } from "./activity-manager";
|
||||
import { Service } from "./service";
|
||||
|
||||
export declare class Message {
|
||||
// @todo Need to "palmbus"
|
||||
public constructor(message: any, handle: any, activityManager: ActivityManager, service: Service);
|
||||
|
||||
public readonly activityManager: ActivityManager;
|
||||
|
||||
public readonly category: string;
|
||||
@ -29,6 +26,9 @@ export declare class Message {
|
||||
|
||||
public readonly uniqueToken: string;
|
||||
|
||||
// @todo Need to "palmbus"
|
||||
public constructor(message: any, handle: any, activityManager: ActivityManager, service: Service);
|
||||
|
||||
public cancel(response: Record<string, any>): void;
|
||||
|
||||
public respond(response: Record<string, any>): boolean;
|
||||
|
4
dist/method.d.ts
vendored
4
dist/method.d.ts
vendored
@ -1,12 +1,12 @@
|
||||
import { Message } from "./message";
|
||||
|
||||
export declare class Method {
|
||||
public constructor(methodName: string, description: Record<string, any>);
|
||||
|
||||
public readonly description: Record<string, any>;
|
||||
|
||||
public readonly name: string;
|
||||
|
||||
public constructor(methodName: string, description: Record<string, any>);
|
||||
|
||||
public on(event: "request", listener: (message: Message) => void): this;
|
||||
|
||||
public on(event: "cancel", listener: (message: Message) => void): this;
|
||||
|
8
dist/service.d.ts
vendored
8
dist/service.d.ts
vendored
@ -9,8 +9,6 @@ export interface IServiceOptions {
|
||||
}
|
||||
|
||||
export declare class Service {
|
||||
public constructor(busId: string, activityManager?: ActivityManager, options?: IServiceOptions);
|
||||
|
||||
public readonly activityManager: ActivityManager;
|
||||
|
||||
public readonly busId: string;
|
||||
@ -27,6 +25,9 @@ export declare class Service {
|
||||
|
||||
public readonly subscriptions: { [id: string]: Message };
|
||||
|
||||
// @todo Need to "unified_service"
|
||||
private readonly __serviceMainUnified: any;
|
||||
|
||||
public cleanupUnifiedDone: boolean;
|
||||
|
||||
// @todo Need to "palmbus"
|
||||
@ -45,8 +46,7 @@ export declare class Service {
|
||||
|
||||
public useACG: boolean;
|
||||
|
||||
// @todo Need to "unified_service"
|
||||
private readonly __serviceMainUnified: any;
|
||||
public constructor(busId: string, activityManager?: ActivityManager, options?: IServiceOptions);
|
||||
|
||||
public call(uri: string, args: Record<string, any>, callback: (message: Message) => void): void;
|
||||
|
||||
|
6
dist/subscription.d.ts
vendored
6
dist/subscription.d.ts
vendored
@ -1,7 +1,4 @@
|
||||
export declare class Subscription {
|
||||
// @todo Need to "palmbus"
|
||||
public constructor(handle: any, uri: string, args: Record<string, any>);
|
||||
|
||||
public readonly args: Record<string, any>;
|
||||
|
||||
// @todo Need to "palmbus"
|
||||
@ -12,5 +9,8 @@ export declare class Subscription {
|
||||
|
||||
public readonly uri: string;
|
||||
|
||||
// @todo Need to "palmbus"
|
||||
public constructor(handle: any, uri: string, args: Record<string, any>);
|
||||
|
||||
public cancel(): void;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user