diff --git a/js/dist-typings/@types/shims.d.ts b/js/dist-typings/@types/shims.d.ts new file mode 100644 index 0000000..d0cc575 --- /dev/null +++ b/js/dist-typings/@types/shims.d.ts @@ -0,0 +1,9 @@ +import 'flarum/common/models/Discussion'; + +declare module 'flarum/common/models/Discussion' { + export default interface Discussion { + frontpage(): boolean; + frontdate(): Date | null; + front(): boolean; + } +} diff --git a/js/dist-typings/admin/index.d.ts b/js/dist-typings/admin/index.d.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/js/dist-typings/admin/index.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/js/dist-typings/forum/extend.d.ts b/js/dist-typings/forum/extend.d.ts new file mode 100644 index 0000000..af1fdf2 --- /dev/null +++ b/js/dist-typings/forum/extend.d.ts @@ -0,0 +1,2 @@ +declare const _default: import("flarum/common/extenders/Model").default[]; +export default _default; diff --git a/js/dist-typings/forum/extenders/addFrontPage.d.ts b/js/dist-typings/forum/extenders/addFrontPage.d.ts new file mode 100644 index 0000000..9c59c24 --- /dev/null +++ b/js/dist-typings/forum/extenders/addFrontPage.d.ts @@ -0,0 +1 @@ +export default function addFrontPage(): void; diff --git a/js/dist-typings/forum/extenders/addFrontSort.d.ts b/js/dist-typings/forum/extenders/addFrontSort.d.ts new file mode 100644 index 0000000..399a90f --- /dev/null +++ b/js/dist-typings/forum/extenders/addFrontSort.d.ts @@ -0,0 +1 @@ +export default function (): void; diff --git a/js/dist-typings/forum/extenders/addStickyBadge.d.ts b/js/dist-typings/forum/extenders/addStickyBadge.d.ts new file mode 100644 index 0000000..70f5a53 --- /dev/null +++ b/js/dist-typings/forum/extenders/addStickyBadge.d.ts @@ -0,0 +1 @@ +export default function addStickyBadge(): void; diff --git a/js/dist-typings/forum/index.d.ts b/js/dist-typings/forum/index.d.ts new file mode 100644 index 0000000..6d2293d --- /dev/null +++ b/js/dist-typings/forum/index.d.ts @@ -0,0 +1 @@ +export { default as extend } from './extend';