@ukwhatn/wikidot 4.2.1 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +56 -27
- package/dist/index.d.cts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +56 -27
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -930,6 +930,14 @@ declare class ForumPost {
|
|
|
930
930
|
*/
|
|
931
931
|
get parentId(): number | null;
|
|
932
932
|
/**
|
|
933
|
+
* Get source code (cached)
|
|
934
|
+
*/
|
|
935
|
+
get source(): string | null;
|
|
936
|
+
/**
|
|
937
|
+
* Set source code
|
|
938
|
+
*/
|
|
939
|
+
set source(value: string | null);
|
|
940
|
+
/**
|
|
933
941
|
* Get source code (Wikidot syntax)
|
|
934
942
|
*/
|
|
935
943
|
getSource(): WikidotResultAsync<string>;
|
|
@@ -974,6 +982,15 @@ declare class ForumPostCollection extends Array<ForumPost> {
|
|
|
974
982
|
* Get all posts from multiple threads
|
|
975
983
|
*/
|
|
976
984
|
static acquireAllInThreads(threads: ForumThreadRef[]): WikidotResultAsync<Map<number, ForumPostCollection>>;
|
|
985
|
+
/**
|
|
986
|
+
* Internal method to acquire post sources in bulk
|
|
987
|
+
*/
|
|
988
|
+
static acquirePostSources(thread: ForumThreadRef, posts: ForumPost[]): WikidotResultAsync<ForumPostCollection>;
|
|
989
|
+
/**
|
|
990
|
+
* Get sources for all posts in the collection
|
|
991
|
+
* @returns Result containing the collection (for method chaining)
|
|
992
|
+
*/
|
|
993
|
+
getPostSources(): WikidotResultAsync<ForumPostCollection>;
|
|
977
994
|
}
|
|
978
995
|
/**
|
|
979
996
|
* Forum thread data
|
package/dist/index.d.ts
CHANGED
|
@@ -930,6 +930,14 @@ declare class ForumPost {
|
|
|
930
930
|
*/
|
|
931
931
|
get parentId(): number | null;
|
|
932
932
|
/**
|
|
933
|
+
* Get source code (cached)
|
|
934
|
+
*/
|
|
935
|
+
get source(): string | null;
|
|
936
|
+
/**
|
|
937
|
+
* Set source code
|
|
938
|
+
*/
|
|
939
|
+
set source(value: string | null);
|
|
940
|
+
/**
|
|
933
941
|
* Get source code (Wikidot syntax)
|
|
934
942
|
*/
|
|
935
943
|
getSource(): WikidotResultAsync<string>;
|
|
@@ -974,6 +982,15 @@ declare class ForumPostCollection extends Array<ForumPost> {
|
|
|
974
982
|
* Get all posts from multiple threads
|
|
975
983
|
*/
|
|
976
984
|
static acquireAllInThreads(threads: ForumThreadRef[]): WikidotResultAsync<Map<number, ForumPostCollection>>;
|
|
985
|
+
/**
|
|
986
|
+
* Internal method to acquire post sources in bulk
|
|
987
|
+
*/
|
|
988
|
+
static acquirePostSources(thread: ForumThreadRef, posts: ForumPost[]): WikidotResultAsync<ForumPostCollection>;
|
|
989
|
+
/**
|
|
990
|
+
* Get sources for all posts in the collection
|
|
991
|
+
* @returns Result containing the collection (for method chaining)
|
|
992
|
+
*/
|
|
993
|
+
getPostSources(): WikidotResultAsync<ForumPostCollection>;
|
|
977
994
|
}
|
|
978
995
|
/**
|
|
979
996
|
* Forum thread data
|