mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 15:34:26 +08:00

Less than 30 erros left, let's hope it still works Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills Roll back some changes involved in separating UIEvent for dom and ios Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
32 lines
719 B
TypeScript
32 lines
719 B
TypeScript
|
|
declare const enum NCUpdateResult {
|
|
|
|
NewData = 0,
|
|
|
|
NoData = 1,
|
|
|
|
Failed = 2
|
|
}
|
|
|
|
declare class NCWidgetController extends NSObject {
|
|
|
|
static alloc(): NCWidgetController; // inherited from NSObject
|
|
|
|
static new(): NCWidgetController; // inherited from NSObject
|
|
|
|
static widgetController(): NCWidgetController;
|
|
|
|
setHasContentForWidgetWithBundleIdentifier(flag: boolean, bundleID: string): void;
|
|
}
|
|
|
|
interface NCWidgetProviding extends NSObjectProtocol {
|
|
|
|
widgetMarginInsetsForProposedMarginInsets?(defaultMarginInsets: UIEdgeInsets): UIEdgeInsets;
|
|
|
|
widgetPerformUpdateWithCompletionHandler?(completionHandler: (p1: NCUpdateResult) => void): void;
|
|
}
|
|
declare var NCWidgetProviding: {
|
|
|
|
prototype: NCWidgetProviding;
|
|
};
|