-
-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEMP: update dist typings for testing
- Loading branch information
Showing
8 changed files
with
49 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* @deprecated Please import `app` from a namespace instead of using it as a global variable. | ||
* | ||
* @example App in forum JS | ||
* ``` | ||
* import app from 'flarum/forum/app'; | ||
* ``` | ||
* | ||
* @example App in admin JS | ||
* ``` | ||
* import app from 'flarum/admin/app'; | ||
* ``` | ||
*/ | ||
declare const app: any; | ||
|
||
declare const m: import('mithril').Static; | ||
declare const dayjs: typeof import('dayjs'); | ||
|
||
// Extend JQuery with our custom functions, defined with $.fn | ||
interface JQuery { | ||
/** | ||
* Flarum's tooltip JQuery plugin. | ||
* | ||
* Do not use this directly. Instead use the `<Tooltip>` component that | ||
* is exported from `flarum/common/components/Tooltip`. | ||
* | ||
* This may be removed in a future version of Flarum. | ||
*/ | ||
tooltip: import('./tooltips/index').TooltipJQueryFunction; | ||
} | ||
|
||
/** | ||
* For more info, see: https://www.typescriptlang.org/docs/handbook/jsx.html#attribute-type-checking | ||
* | ||
* In a nutshell, we need to add `ElementAttributesProperty` to tell Typescript | ||
* what property on component classes to look at for attribute typings. For our | ||
* Component class, this would be `attrs` (e.g. `this.attrs...`) | ||
*/ | ||
interface JSX { | ||
ElementAttributesProperty: { | ||
attrs: Record<string, unknown>; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default function saveSettings(settings: any): Promise<any>; | ||
export default function saveSettings(settings: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters