chore: tsc
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { ApplicationService } from 'snjs';
|
import { ApplicationService } from 'snjs';
|
||||||
export declare class AutolockService extends ApplicationService {
|
export declare class AutolockService extends ApplicationService {
|
||||||
private unsubState;
|
private unsubState?;
|
||||||
private pollFocusInterval;
|
private pollFocusInterval;
|
||||||
private lastFocusState?;
|
private lastFocusState?;
|
||||||
private lockAfterDate?;
|
private lockAfterDate?;
|
||||||
|
|||||||
1
dist/@types/app/assets/javascripts/services/errorReporting.d.ts
vendored
Normal file
1
dist/@types/app/assets/javascripts/services/errorReporting.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export declare function startErrorReporting(): void;
|
||||||
8
dist/@types/app/assets/javascripts/services/localStorage.d.ts
vendored
Normal file
8
dist/@types/app/assets/javascripts/services/localStorage.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
export declare enum StorageKey {
|
||||||
|
DisableErrorReporting = "DisableErrorReporting"
|
||||||
|
}
|
||||||
|
export declare const storage: {
|
||||||
|
get(key: StorageKey): any;
|
||||||
|
set(key: StorageKey, value: unknown): void;
|
||||||
|
remove(key: StorageKey): void;
|
||||||
|
};
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
import { WebApplication } from '@/ui_models/application';
|
import { WebApplication } from '@/ui_models/application';
|
||||||
import { ApplicationService, WebPrefKey } from 'snjs';
|
import { ApplicationService, WebPrefKey, ApplicationEvent } from 'snjs';
|
||||||
export declare class PreferencesManager extends ApplicationService {
|
export declare class PreferencesManager extends ApplicationService {
|
||||||
private userPreferences;
|
private userPreferences;
|
||||||
private loadingPrefs;
|
private loadingPrefs;
|
||||||
private unubscribeStreamItems?;
|
private unubscribeStreamItems?;
|
||||||
|
private needsSingletonReload;
|
||||||
/** @override */
|
/** @override */
|
||||||
onAppLaunch(): Promise<void>;
|
onAppLaunch(): Promise<void>;
|
||||||
|
onAppEvent(event: ApplicationEvent): Promise<void>;
|
||||||
deinit(): void;
|
deinit(): void;
|
||||||
get webApplication(): WebApplication;
|
get webApplication(): WebApplication;
|
||||||
streamPreferences(): void;
|
streamPreferences(): void;
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ export declare const STRING_INVALID_NOTE = "The note you are attempting to save
|
|||||||
export declare const STRING_ELLIPSES = "...";
|
export declare const STRING_ELLIPSES = "...";
|
||||||
export declare const STRING_GENERIC_SAVE_ERROR = "There was an error saving your note. Please try again.";
|
export declare const STRING_GENERIC_SAVE_ERROR = "There was an error saving your note. Please try again.";
|
||||||
export declare const STRING_DELETE_PLACEHOLDER_ATTEMPT = "This note is a placeholder and cannot be deleted. To remove from your list, simply navigate to a different note.";
|
export declare const STRING_DELETE_PLACEHOLDER_ATTEMPT = "This note is a placeholder and cannot be deleted. To remove from your list, simply navigate to a different note.";
|
||||||
|
export declare const STRING_ARCHIVE_LOCKED_ATTEMPT = "This note is locked. If you'd like to archive it, unlock it, and try again.";
|
||||||
|
export declare const STRING_UNARCHIVE_LOCKED_ATTEMPT = "This note is locked. If you'd like to archive it, unlock it, and try again.";
|
||||||
export declare const STRING_DELETE_LOCKED_ATTEMPT = "This note is locked. If you'd like to delete it, unlock it, and try again.";
|
export declare const STRING_DELETE_LOCKED_ATTEMPT = "This note is locked. If you'd like to delete it, unlock it, and try again.";
|
||||||
export declare function StringDeleteNote(title: string, permanently: boolean): string;
|
export declare function StringDeleteNote(title: string, permanently: boolean): string;
|
||||||
export declare function StringEmptyTrash(count: number): string;
|
export declare function StringEmptyTrash(count: number): string;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/// <reference types="angular" />
|
/// <reference types="angular" />
|
||||||
import { SNTag, SNNote, SNUserPrefs } from 'snjs';
|
import { SNTag, SNNote, SNUserPrefs, DeinitSource, UuidString } from 'snjs';
|
||||||
import { WebApplication } from '@/ui_models/application';
|
import { WebApplication } from '@/ui_models/application';
|
||||||
import { Editor } from '@/ui_models/editor';
|
import { Editor } from '@/ui_models/editor';
|
||||||
export declare enum AppStateEvent {
|
export declare enum AppStateEvent {
|
||||||
@@ -18,6 +18,12 @@ export declare enum EventSource {
|
|||||||
Script = 2
|
Script = 2
|
||||||
}
|
}
|
||||||
declare type ObserverCallback = (event: AppStateEvent, data?: any) => Promise<void>;
|
declare type ObserverCallback = (event: AppStateEvent, data?: any) => Promise<void>;
|
||||||
|
declare class ActionsMenuState {
|
||||||
|
hiddenExtensions: Record<UuidString, boolean>;
|
||||||
|
constructor();
|
||||||
|
toggleExtensionVisibility(uuid: UuidString): void;
|
||||||
|
deinit(): void;
|
||||||
|
}
|
||||||
export declare class AppState {
|
export declare class AppState {
|
||||||
$rootScope: ng.IRootScopeService;
|
$rootScope: ng.IRootScopeService;
|
||||||
$timeout: ng.ITimeoutService;
|
$timeout: ng.ITimeoutService;
|
||||||
@@ -31,8 +37,14 @@ export declare class AppState {
|
|||||||
selectedTag?: SNTag;
|
selectedTag?: SNTag;
|
||||||
userPreferences?: SNUserPrefs;
|
userPreferences?: SNUserPrefs;
|
||||||
multiEditorEnabled: boolean;
|
multiEditorEnabled: boolean;
|
||||||
|
showBetaWarning: boolean;
|
||||||
|
actionsMenu: ActionsMenuState;
|
||||||
constructor($rootScope: ng.IRootScopeService, $timeout: ng.ITimeoutService, application: WebApplication);
|
constructor($rootScope: ng.IRootScopeService, $timeout: ng.ITimeoutService, application: WebApplication);
|
||||||
deinit(): void;
|
deinit(source: DeinitSource): void;
|
||||||
|
disableBetaWarning(): void;
|
||||||
|
enableBetaWarning(): void;
|
||||||
|
clearBetaWarning(): void;
|
||||||
|
private determineBetaWarningValue;
|
||||||
/**
|
/**
|
||||||
* Creates a new editor if one doesn't exist. If one does, we'll replace the
|
* Creates a new editor if one doesn't exist. If one does, we'll replace the
|
||||||
* editor's note with an empty one.
|
* editor's note with an empty one.
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export declare class WebDeviceInterface extends DeviceInterface {
|
|||||||
setApplication(application: SNApplication): void;
|
setApplication(application: SNApplication): void;
|
||||||
private databaseForIdentifier;
|
private databaseForIdentifier;
|
||||||
deinit(): void;
|
deinit(): void;
|
||||||
getRawStorageValue(key: string): Promise<string | null>;
|
getRawStorageValue(key: string): Promise<any>;
|
||||||
getAllRawStorageKeyValues(): Promise<{
|
getAllRawStorageKeyValues(): Promise<{
|
||||||
key: string;
|
key: string;
|
||||||
value: any;
|
value: any;
|
||||||
|
|||||||
Reference in New Issue
Block a user