@xpadev-net/niconicomments 0.2.67 → 0.2.68
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/bundle.d.ts +428 -367
- package/dist/bundle.js +305 -153
- package/package.json +16 -16
package/dist/bundle.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v9.
|
|
1
|
+
// Generated by dts-bundle-generator v9.2.1
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Issue reason type.
|
|
5
5
|
*/
|
|
6
|
-
export type IssueReason = "any" | "array" | "bigint" | "blob" | "boolean" | "date" | "function" | "instance" | "map" | "number" | "object" | "record" | "set" | "special" | "string" | "symbol" | "tuple" | "undefined" | "unknown" | "type";
|
|
6
|
+
export type IssueReason = "any" | "array" | "bigint" | "blob" | "boolean" | "date" | "intersect" | "function" | "instance" | "map" | "number" | "object" | "record" | "set" | "special" | "string" | "symbol" | "tuple" | "undefined" | "union" | "unknown" | "variant" | "type";
|
|
7
7
|
/**
|
|
8
8
|
* Issue origin type.
|
|
9
9
|
*/
|
|
@@ -81,6 +81,10 @@ export type Issues = [
|
|
|
81
81
|
* Error message type.
|
|
82
82
|
*/
|
|
83
83
|
export type ErrorMessage = string | (() => string);
|
|
84
|
+
/**
|
|
85
|
+
* Maybe readonly type.
|
|
86
|
+
*/
|
|
87
|
+
export type MaybeReadonly<T> = Readonly<T> | T;
|
|
84
88
|
/**
|
|
85
89
|
* Resolve type.
|
|
86
90
|
*
|
|
@@ -418,11 +422,11 @@ export type EnumSchemaAsync<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> =
|
|
|
418
422
|
/**
|
|
419
423
|
* Intersect options async type.
|
|
420
424
|
*/
|
|
421
|
-
export type IntersectOptionsAsync = [
|
|
425
|
+
export type IntersectOptionsAsync = MaybeReadonly<[
|
|
422
426
|
BaseSchema | BaseSchemaAsync,
|
|
423
427
|
BaseSchema | BaseSchemaAsync,
|
|
424
428
|
...(BaseSchema[] | BaseSchemaAsync[])
|
|
425
|
-
]
|
|
429
|
+
]>;
|
|
426
430
|
/**
|
|
427
431
|
* Intersect input type.
|
|
428
432
|
*/
|
|
@@ -444,11 +448,11 @@ export type IntersectOutput<TIntersectOptions extends IntersectOptions | Interse
|
|
|
444
448
|
/**
|
|
445
449
|
* Intersect options type.
|
|
446
450
|
*/
|
|
447
|
-
export type IntersectOptions = [
|
|
451
|
+
export type IntersectOptions = MaybeReadonly<[
|
|
448
452
|
BaseSchema,
|
|
449
453
|
BaseSchema,
|
|
450
454
|
...BaseSchema[]
|
|
451
|
-
]
|
|
455
|
+
]>;
|
|
452
456
|
/**
|
|
453
457
|
* Intersect schema type.
|
|
454
458
|
*/
|
|
@@ -465,6 +469,10 @@ export type IntersectSchema<TOptions extends IntersectOptions, TOutput = Interse
|
|
|
465
469
|
* The error message.
|
|
466
470
|
*/
|
|
467
471
|
message: ErrorMessage;
|
|
472
|
+
/**
|
|
473
|
+
* The validation and transformation pipeline.
|
|
474
|
+
*/
|
|
475
|
+
pipe: Pipe<IntersectInput<TOptions>> | undefined;
|
|
468
476
|
};
|
|
469
477
|
/**
|
|
470
478
|
* Literal type.
|
|
@@ -525,7 +533,7 @@ export type NeverSchemaAsync = BaseSchemaAsync<never> & {
|
|
|
525
533
|
/**
|
|
526
534
|
* Nullable schema type.
|
|
527
535
|
*/
|
|
528
|
-
export type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchema<Input<TWrapped> | null, TOutput> & {
|
|
536
|
+
export type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchema<Input<TWrapped> | null, TOutput> & {
|
|
529
537
|
/**
|
|
530
538
|
* The schema type.
|
|
531
539
|
*/
|
|
@@ -556,6 +564,40 @@ export type NumberSchema<TOutput = number> = BaseSchema<number, TOutput> & {
|
|
|
556
564
|
*/
|
|
557
565
|
pipe: Pipe<number> | undefined;
|
|
558
566
|
};
|
|
567
|
+
/**
|
|
568
|
+
* Optional schema type.
|
|
569
|
+
*/
|
|
570
|
+
export type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchema<Input<TWrapped> | undefined, TOutput> & {
|
|
571
|
+
/**
|
|
572
|
+
* The schema type.
|
|
573
|
+
*/
|
|
574
|
+
type: "optional";
|
|
575
|
+
/**
|
|
576
|
+
* The wrapped schema.
|
|
577
|
+
*/
|
|
578
|
+
wrapped: TWrapped;
|
|
579
|
+
/**
|
|
580
|
+
* Returns the default value.
|
|
581
|
+
*/
|
|
582
|
+
default: TDefault;
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* Optional schema async type.
|
|
586
|
+
*/
|
|
587
|
+
export type OptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchemaAsync<Input<TWrapped> | undefined, TOutput> & {
|
|
588
|
+
/**
|
|
589
|
+
* The schema type.
|
|
590
|
+
*/
|
|
591
|
+
type: "optional";
|
|
592
|
+
/**
|
|
593
|
+
* The wrapped schema.
|
|
594
|
+
*/
|
|
595
|
+
wrapped: TWrapped;
|
|
596
|
+
/**
|
|
597
|
+
* Returns the default value.
|
|
598
|
+
*/
|
|
599
|
+
default: TDefault;
|
|
600
|
+
};
|
|
559
601
|
/**
|
|
560
602
|
* Object entries async type.
|
|
561
603
|
*/
|
|
@@ -572,35 +614,39 @@ export type ObjectPathItem = {
|
|
|
572
614
|
/**
|
|
573
615
|
* Required object keys type.
|
|
574
616
|
*/
|
|
575
|
-
export type RequiredKeys<TObject extends
|
|
576
|
-
[TKey in keyof
|
|
577
|
-
}[keyof
|
|
617
|
+
export type RequiredKeys<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends EntriesInput<TEntries> | EntriesOutput<TEntries>> = {
|
|
618
|
+
[TKey in keyof TEntries]: TEntries[TKey] extends OptionalSchema<any, any> | OptionalSchemaAsync<any, any> ? undefined extends TObject[TKey] ? never : TKey : TKey;
|
|
619
|
+
}[keyof TEntries];
|
|
578
620
|
/**
|
|
579
621
|
* Optional object keys type.
|
|
580
622
|
*/
|
|
581
|
-
export type OptionalKeys<TObject extends
|
|
582
|
-
[TKey in keyof
|
|
583
|
-
}[keyof
|
|
623
|
+
export type OptionalKeys<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends EntriesInput<TEntries> | EntriesOutput<TEntries>> = {
|
|
624
|
+
[TKey in keyof TEntries]: TEntries[TKey] extends OptionalSchema<any, any> | OptionalSchemaAsync<any, any> ? undefined extends TObject[TKey] ? TKey : never : never;
|
|
625
|
+
}[keyof TEntries];
|
|
626
|
+
/**
|
|
627
|
+
* Entries input inference type.
|
|
628
|
+
*/
|
|
629
|
+
export type EntriesInput<TEntries extends ObjectEntries | ObjectEntriesAsync> = {
|
|
630
|
+
[TKey in keyof TEntries]: Input<TEntries[TKey]>;
|
|
631
|
+
};
|
|
632
|
+
/**
|
|
633
|
+
* Entries output inference type.
|
|
634
|
+
*/
|
|
635
|
+
export type EntriesOutput<TEntries extends ObjectEntries | ObjectEntriesAsync> = {
|
|
636
|
+
[TKey in keyof TEntries]: Output<TEntries[TKey]>;
|
|
637
|
+
};
|
|
584
638
|
/**
|
|
585
639
|
* Object with question marks type.
|
|
586
640
|
*/
|
|
587
|
-
export type WithQuestionMarks<TObject extends
|
|
641
|
+
export type WithQuestionMarks<TEntries extends ObjectEntries | ObjectEntriesAsync, TObject extends EntriesInput<TEntries> | EntriesOutput<TEntries>> = Pick<TObject, RequiredKeys<TEntries, TObject>> & Partial<Pick<TObject, OptionalKeys<TEntries, TObject>>>;
|
|
588
642
|
/**
|
|
589
643
|
* Object input inference type.
|
|
590
644
|
*/
|
|
591
|
-
export type ObjectInput<TEntries extends ObjectEntries | ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined> = TRest extends undefined | NeverSchema | NeverSchemaAsync ? ResolveObject<WithQuestionMarks<
|
|
592
|
-
[TKey in keyof TEntries]: Input<TEntries[TKey]>;
|
|
593
|
-
}>> : TRest extends BaseSchema | BaseSchemaAsync ? ResolveObject<WithQuestionMarks<{
|
|
594
|
-
[TKey in keyof TEntries]: Input<TEntries[TKey]>;
|
|
595
|
-
}>> & Record<string, Input<TRest>> : never;
|
|
645
|
+
export type ObjectInput<TEntries extends ObjectEntries | ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined> = TRest extends undefined | NeverSchema | NeverSchemaAsync ? ResolveObject<WithQuestionMarks<TEntries, EntriesInput<TEntries>>> : TRest extends BaseSchema | BaseSchemaAsync ? ResolveObject<WithQuestionMarks<TEntries, EntriesInput<TEntries>>> & Record<string, Input<TRest>> : never;
|
|
596
646
|
/**
|
|
597
647
|
* Object output inference type.
|
|
598
648
|
*/
|
|
599
|
-
export type ObjectOutput<TEntries extends ObjectEntries | ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined> = TRest extends undefined | NeverSchema | NeverSchemaAsync ? ResolveObject<WithQuestionMarks<
|
|
600
|
-
[TKey in keyof TEntries]: Output<TEntries[TKey]>;
|
|
601
|
-
}>> : TRest extends BaseSchema | BaseSchemaAsync ? ResolveObject<WithQuestionMarks<{
|
|
602
|
-
[TKey in keyof TEntries]: Output<TEntries[TKey]>;
|
|
603
|
-
}>> & Record<string, Output<TRest>> : never;
|
|
649
|
+
export type ObjectOutput<TEntries extends ObjectEntries | ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined> = TRest extends undefined | NeverSchema | NeverSchemaAsync ? ResolveObject<WithQuestionMarks<TEntries, EntriesOutput<TEntries>>> : TRest extends BaseSchema | BaseSchemaAsync ? ResolveObject<WithQuestionMarks<TEntries, EntriesOutput<TEntries>>> & Record<string, Output<TRest>> : never;
|
|
604
650
|
/**
|
|
605
651
|
* Object entries type.
|
|
606
652
|
*/
|
|
@@ -630,33 +676,10 @@ export type ObjectSchema<TEntries extends ObjectEntries, TRest extends BaseSchem
|
|
|
630
676
|
*/
|
|
631
677
|
pipe: Pipe<ObjectOutput<TEntries, TRest>> | undefined;
|
|
632
678
|
};
|
|
633
|
-
/**
|
|
634
|
-
* Optional schema type.
|
|
635
|
-
*/
|
|
636
|
-
export type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchema<Input<TWrapped> | undefined, TOutput> & {
|
|
637
|
-
/**
|
|
638
|
-
* The schema type.
|
|
639
|
-
*/
|
|
640
|
-
type: "optional";
|
|
641
|
-
/**
|
|
642
|
-
* The wrapped schema.
|
|
643
|
-
*/
|
|
644
|
-
wrapped: TWrapped;
|
|
645
|
-
/**
|
|
646
|
-
* Returns the default value.
|
|
647
|
-
*/
|
|
648
|
-
default: TDefault;
|
|
649
|
-
};
|
|
650
679
|
/**
|
|
651
680
|
* Picklist options type.
|
|
652
681
|
*/
|
|
653
|
-
export type PicklistOptions
|
|
654
|
-
TOption,
|
|
655
|
-
...TOption[]
|
|
656
|
-
]> | [
|
|
657
|
-
TOption,
|
|
658
|
-
...TOption[]
|
|
659
|
-
];
|
|
682
|
+
export type PicklistOptions = MaybeReadonly<string[]>;
|
|
660
683
|
/**
|
|
661
684
|
* Picklist schema type.
|
|
662
685
|
*/
|
|
@@ -691,6 +714,48 @@ export type PicklistSchemaAsync<TOptions extends PicklistOptions, TOutput = TOpt
|
|
|
691
714
|
*/
|
|
692
715
|
message: ErrorMessage;
|
|
693
716
|
};
|
|
717
|
+
/**
|
|
718
|
+
* Special schema type.
|
|
719
|
+
*/
|
|
720
|
+
export type SpecialSchema<TInput, TOutput = TInput> = BaseSchema<TInput, TOutput> & {
|
|
721
|
+
/**
|
|
722
|
+
* The schema type.
|
|
723
|
+
*/
|
|
724
|
+
type: "special";
|
|
725
|
+
/**
|
|
726
|
+
* The type check function.
|
|
727
|
+
*/
|
|
728
|
+
check: (input: unknown) => boolean;
|
|
729
|
+
/**
|
|
730
|
+
* The error message.
|
|
731
|
+
*/
|
|
732
|
+
message: ErrorMessage;
|
|
733
|
+
/**
|
|
734
|
+
* The validation and transformation pipeline.
|
|
735
|
+
*/
|
|
736
|
+
pipe: Pipe<TInput> | undefined;
|
|
737
|
+
};
|
|
738
|
+
/**
|
|
739
|
+
* Special schema async type.
|
|
740
|
+
*/
|
|
741
|
+
export type SpecialSchemaAsync<TInput, TOutput = TInput> = BaseSchemaAsync<TInput, TOutput> & {
|
|
742
|
+
/**
|
|
743
|
+
* The schema type.
|
|
744
|
+
*/
|
|
745
|
+
type: "special";
|
|
746
|
+
/**
|
|
747
|
+
* The type check function.
|
|
748
|
+
*/
|
|
749
|
+
check: (input: unknown) => boolean | Promise<boolean>;
|
|
750
|
+
/**
|
|
751
|
+
* The error message.
|
|
752
|
+
*/
|
|
753
|
+
message: ErrorMessage;
|
|
754
|
+
/**
|
|
755
|
+
* The validation and transformation pipeline.
|
|
756
|
+
*/
|
|
757
|
+
pipe: PipeAsync<TInput> | undefined;
|
|
758
|
+
};
|
|
694
759
|
/**
|
|
695
760
|
* String schema type.
|
|
696
761
|
*/
|
|
@@ -728,11 +793,7 @@ export type StringSchemaAsync<TOutput = string> = BaseSchemaAsync<string, TOutpu
|
|
|
728
793
|
/**
|
|
729
794
|
* Union options type.
|
|
730
795
|
*/
|
|
731
|
-
export type UnionOptions = [
|
|
732
|
-
BaseSchema,
|
|
733
|
-
BaseSchema,
|
|
734
|
-
...BaseSchema[]
|
|
735
|
-
];
|
|
796
|
+
export type UnionOptions = MaybeReadonly<BaseSchema[]>;
|
|
736
797
|
/**
|
|
737
798
|
* Union schema type.
|
|
738
799
|
*/
|
|
@@ -749,15 +810,15 @@ export type UnionSchema<TOptions extends UnionOptions, TOutput = Output<TOptions
|
|
|
749
810
|
* The error message.
|
|
750
811
|
*/
|
|
751
812
|
message: ErrorMessage;
|
|
813
|
+
/**
|
|
814
|
+
* The validation and transformation pipeline.
|
|
815
|
+
*/
|
|
816
|
+
pipe: Pipe<Input<TOptions[number]>> | undefined;
|
|
752
817
|
};
|
|
753
818
|
/**
|
|
754
819
|
* Union options async type.
|
|
755
820
|
*/
|
|
756
|
-
export type UnionOptionsAsync = [
|
|
757
|
-
BaseSchema | BaseSchemaAsync,
|
|
758
|
-
BaseSchema | BaseSchemaAsync,
|
|
759
|
-
...(BaseSchema[] | BaseSchemaAsync[])
|
|
760
|
-
];
|
|
821
|
+
export type UnionOptionsAsync = MaybeReadonly<(BaseSchema | BaseSchemaAsync)[]>;
|
|
761
822
|
/**
|
|
762
823
|
* Union schema async type.
|
|
763
824
|
*/
|
|
@@ -774,11 +835,15 @@ export type UnionSchemaAsync<TOptions extends UnionOptionsAsync, TOutput = Outpu
|
|
|
774
835
|
* The error message.
|
|
775
836
|
*/
|
|
776
837
|
message: ErrorMessage;
|
|
838
|
+
/**
|
|
839
|
+
* The validation and transformation pipeline.
|
|
840
|
+
*/
|
|
841
|
+
pipe: PipeAsync<Input<TOptions[number]>> | undefined;
|
|
777
842
|
};
|
|
778
843
|
/**
|
|
779
844
|
* Record key type.
|
|
780
845
|
*/
|
|
781
|
-
export type RecordKeyAsync = EnumSchema<any, string | number | symbol> | EnumSchemaAsync<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | PicklistSchemaAsync<any, string | number | symbol> | StringSchema<string | number | symbol> | StringSchemaAsync<string | number | symbol> | UnionSchema<any, string | number | symbol> | UnionSchemaAsync<any, string | number | symbol>;
|
|
846
|
+
export type RecordKeyAsync = EnumSchema<any, string | number | symbol> | EnumSchemaAsync<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | PicklistSchemaAsync<any, string | number | symbol> | SpecialSchema<any, string | number | symbol> | SpecialSchemaAsync<any, string | number | symbol> | StringSchema<string | number | symbol> | StringSchemaAsync<string | number | symbol> | UnionSchema<any, string | number | symbol> | UnionSchemaAsync<any, string | number | symbol>;
|
|
782
847
|
/**
|
|
783
848
|
* Record path item type.
|
|
784
849
|
*/
|
|
@@ -803,7 +868,7 @@ export type RecordOutput<TKey extends RecordKey | RecordKeyAsync, TValue extends
|
|
|
803
868
|
/**
|
|
804
869
|
* Record key type.
|
|
805
870
|
*/
|
|
806
|
-
export type RecordKey = EnumSchema<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | StringSchema<string | number | symbol> | UnionSchema<any, string | number | symbol>;
|
|
871
|
+
export type RecordKey = EnumSchema<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | SpecialSchema<any, string | number | symbol> | StringSchema<string | number | symbol> | UnionSchema<any, string | number | symbol>;
|
|
807
872
|
/**
|
|
808
873
|
* Record schema type.
|
|
809
874
|
*/
|
|
@@ -1210,11 +1275,7 @@ export interface CommentEventMap {
|
|
|
1210
1275
|
jump: JumpEvent;
|
|
1211
1276
|
}
|
|
1212
1277
|
export type Platform = "win7" | "win8_1" | "win" | "mac10_9" | "mac10_11" | "mac" | "other";
|
|
1213
|
-
export declare const ZHTML5Fonts: UnionSchema<[
|
|
1214
|
-
LiteralSchema<"gothic", "gothic">,
|
|
1215
|
-
LiteralSchema<"mincho", "mincho">,
|
|
1216
|
-
LiteralSchema<"defont", "defont">
|
|
1217
|
-
], "defont" | "mincho" | "gothic">;
|
|
1278
|
+
export declare const ZHTML5Fonts: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic">)[], "defont" | "mincho" | "gothic">;
|
|
1218
1279
|
export type HTML5Fonts = Output<typeof ZHTML5Fonts>;
|
|
1219
1280
|
export type FontItem = {
|
|
1220
1281
|
font: string;
|
|
@@ -1303,55 +1364,52 @@ export declare const ZApiChat: ObjectSchema<{
|
|
|
1303
1364
|
deleted: number;
|
|
1304
1365
|
}>;
|
|
1305
1366
|
export type ApiChat = Output<typeof ZApiChat>;
|
|
1306
|
-
export declare const ZRawApiResponse: UnionSchema<
|
|
1307
|
-
ObjectSchema<{
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
deleted: OptionalSchema<NumberSchema<number>, 0, number>;
|
|
1321
|
-
}, undefined, {
|
|
1322
|
-
content: string;
|
|
1323
|
-
vpos: number;
|
|
1324
|
-
date: number;
|
|
1325
|
-
date_usec: number;
|
|
1326
|
-
premium: number;
|
|
1327
|
-
mail: string;
|
|
1328
|
-
user_id: string;
|
|
1329
|
-
thread: string;
|
|
1330
|
-
no: number;
|
|
1331
|
-
nicoru: number;
|
|
1332
|
-
anonymity: number;
|
|
1333
|
-
deleted: number;
|
|
1334
|
-
}>;
|
|
1367
|
+
export declare const ZRawApiResponse: UnionSchema<(ObjectSchema<{
|
|
1368
|
+
chat: ObjectSchema<{
|
|
1369
|
+
thread: OptionalSchema<StringSchema<string>, "", string>;
|
|
1370
|
+
no: OptionalSchema<NumberSchema<number>, 0, number>;
|
|
1371
|
+
vpos: NumberSchema<number>;
|
|
1372
|
+
date: OptionalSchema<NumberSchema<number>, 0, number>;
|
|
1373
|
+
date_usec: OptionalSchema<NumberSchema<number>, 0, number>;
|
|
1374
|
+
nicoru: OptionalSchema<NumberSchema<number>, 0, number>;
|
|
1375
|
+
premium: OptionalSchema<NumberSchema<number>, 0, number>;
|
|
1376
|
+
anonymity: OptionalSchema<NumberSchema<number>, 0, number>;
|
|
1377
|
+
user_id: OptionalSchema<StringSchema<string>, "", string>;
|
|
1378
|
+
mail: OptionalSchema<StringSchema<string>, "", string>;
|
|
1379
|
+
content: StringSchema<string>;
|
|
1380
|
+
deleted: OptionalSchema<NumberSchema<number>, 0, number>;
|
|
1335
1381
|
}, undefined, {
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1382
|
+
content: string;
|
|
1383
|
+
vpos: number;
|
|
1384
|
+
date: number;
|
|
1385
|
+
date_usec: number;
|
|
1386
|
+
premium: number;
|
|
1387
|
+
mail: string;
|
|
1388
|
+
user_id: string;
|
|
1389
|
+
thread: string;
|
|
1390
|
+
no: number;
|
|
1391
|
+
nicoru: number;
|
|
1392
|
+
anonymity: number;
|
|
1393
|
+
deleted: number;
|
|
1394
|
+
}>;
|
|
1395
|
+
}, undefined, {
|
|
1396
|
+
chat: {
|
|
1397
|
+
content: string;
|
|
1398
|
+
vpos: number;
|
|
1399
|
+
date: number;
|
|
1400
|
+
date_usec: number;
|
|
1401
|
+
premium: number;
|
|
1402
|
+
mail: string;
|
|
1403
|
+
user_id: string;
|
|
1404
|
+
thread: string;
|
|
1405
|
+
no: number;
|
|
1406
|
+
nicoru: number;
|
|
1407
|
+
anonymity: number;
|
|
1408
|
+
deleted: number;
|
|
1409
|
+
};
|
|
1410
|
+
}> | RecordSchema<StringSchema<string>, UnknownSchema<unknown>, {
|
|
1411
|
+
[x: string]: unknown;
|
|
1412
|
+
}>)[], {
|
|
1355
1413
|
chat: {
|
|
1356
1414
|
content: string;
|
|
1357
1415
|
vpos: number;
|
|
@@ -1496,6 +1554,7 @@ export declare const ZV1Thread: ObjectSchema<{
|
|
|
1496
1554
|
isMyPost: boolean;
|
|
1497
1555
|
}[]>;
|
|
1498
1556
|
}, undefined, {
|
|
1557
|
+
id: unknown;
|
|
1499
1558
|
fork: string;
|
|
1500
1559
|
commentCount: number;
|
|
1501
1560
|
comments: {
|
|
@@ -1513,7 +1572,6 @@ export declare const ZV1Thread: ObjectSchema<{
|
|
|
1513
1572
|
source: string;
|
|
1514
1573
|
isMyPost: boolean;
|
|
1515
1574
|
}[];
|
|
1516
|
-
id?: unknown;
|
|
1517
1575
|
}>;
|
|
1518
1576
|
export type V1Thread = Output<typeof ZV1Thread>;
|
|
1519
1577
|
export type v1Thread = V1Thread;
|
|
@@ -1535,6 +1593,10 @@ export interface IComment {
|
|
|
1535
1593
|
draw: (vpos: number, showCollision: boolean, cursor?: Position) => void;
|
|
1536
1594
|
isHovered: (cursor?: Position, posX?: number, posY?: number) => boolean;
|
|
1537
1595
|
}
|
|
1596
|
+
export interface InputParser {
|
|
1597
|
+
key: string[];
|
|
1598
|
+
parse: (input: unknown) => FormattedComment[];
|
|
1599
|
+
}
|
|
1538
1600
|
export interface IPluginConstructor {
|
|
1539
1601
|
id: string;
|
|
1540
1602
|
new (Canvas: IRenderer, comments: IComment[]): IPlugin;
|
|
@@ -1548,8 +1610,90 @@ export type IPluginList = {
|
|
|
1548
1610
|
instance: IPlugin;
|
|
1549
1611
|
canvas: IRenderer;
|
|
1550
1612
|
}[];
|
|
1551
|
-
|
|
1552
|
-
|
|
1613
|
+
declare const ZXml2jsPacket: ObjectSchema<{
|
|
1614
|
+
packet: ObjectSchema<{
|
|
1615
|
+
chat: ArraySchema<ObjectSchema<{
|
|
1616
|
+
_: StringSchema<string>;
|
|
1617
|
+
$: ObjectSchema<{
|
|
1618
|
+
no: OptionalSchema<StringSchema<string>, undefined, string | undefined>;
|
|
1619
|
+
vpos: StringSchema<string>;
|
|
1620
|
+
date: OptionalSchema<StringSchema<string>, "0", string>;
|
|
1621
|
+
date_usec: OptionalSchema<StringSchema<string>, "0", string>;
|
|
1622
|
+
user_id: OptionalSchema<StringSchema<string>, undefined, string | undefined>;
|
|
1623
|
+
owner: OptionalSchema<StringSchema<string>, "", string>;
|
|
1624
|
+
premium: OptionalSchema<StringSchema<string>, "", string>;
|
|
1625
|
+
mail: OptionalSchema<StringSchema<string>, "", string>;
|
|
1626
|
+
}, undefined, {
|
|
1627
|
+
owner: string;
|
|
1628
|
+
vpos: string;
|
|
1629
|
+
date: string;
|
|
1630
|
+
date_usec: string;
|
|
1631
|
+
premium: string;
|
|
1632
|
+
mail: string;
|
|
1633
|
+
user_id?: string | undefined;
|
|
1634
|
+
no?: string | undefined;
|
|
1635
|
+
}>;
|
|
1636
|
+
}, undefined, {
|
|
1637
|
+
_: string;
|
|
1638
|
+
$: {
|
|
1639
|
+
owner: string;
|
|
1640
|
+
vpos: string;
|
|
1641
|
+
date: string;
|
|
1642
|
+
date_usec: string;
|
|
1643
|
+
premium: string;
|
|
1644
|
+
mail: string;
|
|
1645
|
+
user_id?: string | undefined;
|
|
1646
|
+
no?: string | undefined;
|
|
1647
|
+
};
|
|
1648
|
+
}>, {
|
|
1649
|
+
_: string;
|
|
1650
|
+
$: {
|
|
1651
|
+
owner: string;
|
|
1652
|
+
vpos: string;
|
|
1653
|
+
date: string;
|
|
1654
|
+
date_usec: string;
|
|
1655
|
+
premium: string;
|
|
1656
|
+
mail: string;
|
|
1657
|
+
user_id?: string | undefined;
|
|
1658
|
+
no?: string | undefined;
|
|
1659
|
+
};
|
|
1660
|
+
}[]>;
|
|
1661
|
+
}, undefined, {
|
|
1662
|
+
chat: {
|
|
1663
|
+
_: string;
|
|
1664
|
+
$: {
|
|
1665
|
+
owner: string;
|
|
1666
|
+
vpos: string;
|
|
1667
|
+
date: string;
|
|
1668
|
+
date_usec: string;
|
|
1669
|
+
premium: string;
|
|
1670
|
+
mail: string;
|
|
1671
|
+
user_id?: string | undefined;
|
|
1672
|
+
no?: string | undefined;
|
|
1673
|
+
};
|
|
1674
|
+
}[];
|
|
1675
|
+
}>;
|
|
1676
|
+
}, undefined, {
|
|
1677
|
+
packet: {
|
|
1678
|
+
chat: {
|
|
1679
|
+
_: string;
|
|
1680
|
+
$: {
|
|
1681
|
+
owner: string;
|
|
1682
|
+
vpos: string;
|
|
1683
|
+
date: string;
|
|
1684
|
+
date_usec: string;
|
|
1685
|
+
premium: string;
|
|
1686
|
+
mail: string;
|
|
1687
|
+
user_id?: string | undefined;
|
|
1688
|
+
no?: string | undefined;
|
|
1689
|
+
};
|
|
1690
|
+
}[];
|
|
1691
|
+
};
|
|
1692
|
+
}>;
|
|
1693
|
+
export type Xml2jsPacket = Output<typeof ZXml2jsPacket>;
|
|
1694
|
+
export declare const ZInputFormatType: UnionSchema<(LiteralSchema<"XMLDocument", "XMLDocument"> | LiteralSchema<"niconicome", "niconicome"> | LiteralSchema<"xml2js", "xml2js"> | LiteralSchema<"formatted", "formatted"> | LiteralSchema<"legacy", "legacy"> | LiteralSchema<"legacyOwner", "legacyOwner"> | LiteralSchema<"owner", "owner"> | LiteralSchema<"v1", "v1"> | LiteralSchema<"empty", "empty"> | LiteralSchema<"default", "default">)[], "default" | "XMLDocument" | "niconicome" | "xml2js" | "formatted" | "legacy" | "legacyOwner" | "owner" | "v1" | "empty">;
|
|
1695
|
+
export type InputFormatType = Output<typeof ZInputFormatType>;
|
|
1696
|
+
export type InputFormat = XMLDocument | Xml2jsPacket | FormattedComment[] | FormattedLegacyComment[] | RawApiResponse[] | OwnerComment[] | V1Thread[] | string | undefined;
|
|
1553
1697
|
export type ModeType = "default" | "html5" | "flash";
|
|
1554
1698
|
export type BaseOptions = {
|
|
1555
1699
|
config: Config;
|
|
@@ -1635,36 +1779,18 @@ export type ParseCommandAndNicoScriptResult = {
|
|
|
1635
1779
|
long: number;
|
|
1636
1780
|
button?: ButtonParams;
|
|
1637
1781
|
};
|
|
1638
|
-
export declare const ZCommentFont: UnionSchema<[
|
|
1639
|
-
LiteralSchema<"defont", "defont">,
|
|
1640
|
-
LiteralSchema<"mincho", "mincho">,
|
|
1641
|
-
LiteralSchema<"gothic", "gothic">,
|
|
1642
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1643
|
-
LiteralSchema<"simsun", "simsun">
|
|
1644
|
-
], "defont" | "mincho" | "gothic" | "gulim" | "simsun">;
|
|
1782
|
+
export declare const ZCommentFont: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "mincho" | "gothic" | "gulim" | "simsun">;
|
|
1645
1783
|
export type CommentFont = Output<typeof ZCommentFont>;
|
|
1646
|
-
export declare const ZCommentHTML5Font: UnionSchema<[
|
|
1647
|
-
LiteralSchema<"defont", "defont">,
|
|
1648
|
-
LiteralSchema<"mincho", "mincho">,
|
|
1649
|
-
LiteralSchema<"gothic", "gothic">
|
|
1650
|
-
], "defont" | "mincho" | "gothic">;
|
|
1784
|
+
export declare const ZCommentHTML5Font: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic">)[], "defont" | "mincho" | "gothic">;
|
|
1651
1785
|
export type CommentHTML5Font = Output<typeof ZCommentHTML5Font>;
|
|
1652
|
-
export declare const ZCommentFlashFont: UnionSchema<[
|
|
1653
|
-
LiteralSchema<"defont", "defont">,
|
|
1654
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1655
|
-
LiteralSchema<"simsun", "simsun">
|
|
1656
|
-
], "defont" | "gulim" | "simsun">;
|
|
1786
|
+
export declare const ZCommentFlashFont: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">;
|
|
1657
1787
|
export type CommentFlashFont = Output<typeof ZCommentFlashFont>;
|
|
1658
1788
|
export declare const ZCommentContentItemSpacer: ObjectSchema<{
|
|
1659
1789
|
type: LiteralSchema<"spacer", "spacer">;
|
|
1660
1790
|
char: StringSchema<string>;
|
|
1661
1791
|
charWidth: NumberSchema<number>;
|
|
1662
1792
|
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1663
|
-
font: OptionalSchema<UnionSchema<[
|
|
1664
|
-
LiteralSchema<"defont", "defont">,
|
|
1665
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1666
|
-
LiteralSchema<"simsun", "simsun">
|
|
1667
|
-
], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1793
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1668
1794
|
count: NumberSchema<number>;
|
|
1669
1795
|
}, undefined, {
|
|
1670
1796
|
type: "spacer";
|
|
@@ -1679,11 +1805,7 @@ export declare const ZCommentContentItemText: ObjectSchema<{
|
|
|
1679
1805
|
content: StringSchema<string>;
|
|
1680
1806
|
slicedContent: ArraySchema<StringSchema<string>, string[]>;
|
|
1681
1807
|
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1682
|
-
font: OptionalSchema<UnionSchema<[
|
|
1683
|
-
LiteralSchema<"defont", "defont">,
|
|
1684
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1685
|
-
LiteralSchema<"simsun", "simsun">
|
|
1686
|
-
], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1808
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1687
1809
|
width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
|
|
1688
1810
|
}, undefined, {
|
|
1689
1811
|
type: "text";
|
|
@@ -1694,17 +1816,57 @@ export declare const ZCommentContentItemText: ObjectSchema<{
|
|
|
1694
1816
|
width?: number[] | undefined;
|
|
1695
1817
|
}>;
|
|
1696
1818
|
export type CommentContentItemText = Output<typeof ZCommentContentItemText>;
|
|
1697
|
-
export declare const ZCommentContentItem: UnionSchema<
|
|
1698
|
-
|
|
1819
|
+
export declare const ZCommentContentItem: UnionSchema<(ObjectSchema<{
|
|
1820
|
+
type: LiteralSchema<"spacer", "spacer">;
|
|
1821
|
+
char: StringSchema<string>;
|
|
1822
|
+
charWidth: NumberSchema<number>;
|
|
1823
|
+
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1824
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1825
|
+
count: NumberSchema<number>;
|
|
1826
|
+
}, undefined, {
|
|
1827
|
+
type: "spacer";
|
|
1828
|
+
char: string;
|
|
1829
|
+
charWidth: number;
|
|
1830
|
+
count: number;
|
|
1831
|
+
isButton?: boolean | undefined;
|
|
1832
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1833
|
+
}> | ObjectSchema<{
|
|
1834
|
+
type: LiteralSchema<"text", "text">;
|
|
1835
|
+
content: StringSchema<string>;
|
|
1836
|
+
slicedContent: ArraySchema<StringSchema<string>, string[]>;
|
|
1837
|
+
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1838
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1839
|
+
width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
|
|
1840
|
+
}, undefined, {
|
|
1841
|
+
type: "text";
|
|
1842
|
+
content: string;
|
|
1843
|
+
slicedContent: string[];
|
|
1844
|
+
isButton?: boolean | undefined;
|
|
1845
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1846
|
+
width?: number[] | undefined;
|
|
1847
|
+
}>)[], {
|
|
1848
|
+
type: "spacer";
|
|
1849
|
+
char: string;
|
|
1850
|
+
charWidth: number;
|
|
1851
|
+
count: number;
|
|
1852
|
+
isButton?: boolean | undefined;
|
|
1853
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1854
|
+
} | {
|
|
1855
|
+
type: "text";
|
|
1856
|
+
content: string;
|
|
1857
|
+
slicedContent: string[];
|
|
1858
|
+
isButton?: boolean | undefined;
|
|
1859
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1860
|
+
width?: number[] | undefined;
|
|
1861
|
+
}>;
|
|
1862
|
+
export type CommentContentItem = Output<typeof ZCommentContentItem>;
|
|
1863
|
+
export declare const ZCommentMeasuredContentItemText: IntersectSchema<[
|
|
1864
|
+
UnionSchema<(ObjectSchema<{
|
|
1699
1865
|
type: LiteralSchema<"spacer", "spacer">;
|
|
1700
1866
|
char: StringSchema<string>;
|
|
1701
1867
|
charWidth: NumberSchema<number>;
|
|
1702
1868
|
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1703
|
-
font: OptionalSchema<UnionSchema<[
|
|
1704
|
-
LiteralSchema<"defont", "defont">,
|
|
1705
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1706
|
-
LiteralSchema<"simsun", "simsun">
|
|
1707
|
-
], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1869
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1708
1870
|
count: NumberSchema<number>;
|
|
1709
1871
|
}, undefined, {
|
|
1710
1872
|
type: "spacer";
|
|
@@ -1713,17 +1875,12 @@ export declare const ZCommentContentItem: UnionSchema<[
|
|
|
1713
1875
|
count: number;
|
|
1714
1876
|
isButton?: boolean | undefined;
|
|
1715
1877
|
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1716
|
-
}
|
|
1717
|
-
ObjectSchema<{
|
|
1878
|
+
}> | ObjectSchema<{
|
|
1718
1879
|
type: LiteralSchema<"text", "text">;
|
|
1719
1880
|
content: StringSchema<string>;
|
|
1720
1881
|
slicedContent: ArraySchema<StringSchema<string>, string[]>;
|
|
1721
1882
|
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1722
|
-
font: OptionalSchema<UnionSchema<[
|
|
1723
|
-
LiteralSchema<"defont", "defont">,
|
|
1724
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1725
|
-
LiteralSchema<"simsun", "simsun">
|
|
1726
|
-
], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1883
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1727
1884
|
width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
|
|
1728
1885
|
}, undefined, {
|
|
1729
1886
|
type: "text";
|
|
@@ -1732,64 +1889,7 @@ export declare const ZCommentContentItem: UnionSchema<[
|
|
|
1732
1889
|
isButton?: boolean | undefined;
|
|
1733
1890
|
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1734
1891
|
width?: number[] | undefined;
|
|
1735
|
-
}>
|
|
1736
|
-
], {
|
|
1737
|
-
type: "spacer";
|
|
1738
|
-
char: string;
|
|
1739
|
-
charWidth: number;
|
|
1740
|
-
count: number;
|
|
1741
|
-
isButton?: boolean | undefined;
|
|
1742
|
-
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1743
|
-
} | {
|
|
1744
|
-
type: "text";
|
|
1745
|
-
content: string;
|
|
1746
|
-
slicedContent: string[];
|
|
1747
|
-
isButton?: boolean | undefined;
|
|
1748
|
-
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1749
|
-
width?: number[] | undefined;
|
|
1750
|
-
}>;
|
|
1751
|
-
export type CommentContentItem = Output<typeof ZCommentContentItem>;
|
|
1752
|
-
export declare const ZCommentMeasuredContentItemText: IntersectSchema<[
|
|
1753
|
-
UnionSchema<[
|
|
1754
|
-
ObjectSchema<{
|
|
1755
|
-
type: LiteralSchema<"spacer", "spacer">;
|
|
1756
|
-
char: StringSchema<string>;
|
|
1757
|
-
charWidth: NumberSchema<number>;
|
|
1758
|
-
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1759
|
-
font: OptionalSchema<UnionSchema<[
|
|
1760
|
-
LiteralSchema<"defont", "defont">,
|
|
1761
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1762
|
-
LiteralSchema<"simsun", "simsun">
|
|
1763
|
-
], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1764
|
-
count: NumberSchema<number>;
|
|
1765
|
-
}, undefined, {
|
|
1766
|
-
type: "spacer";
|
|
1767
|
-
char: string;
|
|
1768
|
-
charWidth: number;
|
|
1769
|
-
count: number;
|
|
1770
|
-
isButton?: boolean | undefined;
|
|
1771
|
-
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1772
|
-
}>,
|
|
1773
|
-
ObjectSchema<{
|
|
1774
|
-
type: LiteralSchema<"text", "text">;
|
|
1775
|
-
content: StringSchema<string>;
|
|
1776
|
-
slicedContent: ArraySchema<StringSchema<string>, string[]>;
|
|
1777
|
-
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1778
|
-
font: OptionalSchema<UnionSchema<[
|
|
1779
|
-
LiteralSchema<"defont", "defont">,
|
|
1780
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1781
|
-
LiteralSchema<"simsun", "simsun">
|
|
1782
|
-
], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1783
|
-
width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
|
|
1784
|
-
}, undefined, {
|
|
1785
|
-
type: "text";
|
|
1786
|
-
content: string;
|
|
1787
|
-
slicedContent: string[];
|
|
1788
|
-
isButton?: boolean | undefined;
|
|
1789
|
-
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1790
|
-
width?: number[] | undefined;
|
|
1791
|
-
}>
|
|
1792
|
-
], {
|
|
1892
|
+
}>)[], {
|
|
1793
1893
|
type: "spacer";
|
|
1794
1894
|
char: string;
|
|
1795
1895
|
charWidth: number;
|
|
@@ -1826,104 +1926,86 @@ export declare const ZCommentMeasuredContentItemText: IntersectSchema<[
|
|
|
1826
1926
|
}) & {
|
|
1827
1927
|
width: number[];
|
|
1828
1928
|
}>;
|
|
1829
|
-
export declare const ZCommentMeasuredContentItem: UnionSchema<
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
type: LiteralSchema<"text", "text">;
|
|
1853
|
-
content: StringSchema<string>;
|
|
1854
|
-
slicedContent: ArraySchema<StringSchema<string>, string[]>;
|
|
1855
|
-
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1856
|
-
font: OptionalSchema<UnionSchema<[
|
|
1857
|
-
LiteralSchema<"defont", "defont">,
|
|
1858
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1859
|
-
LiteralSchema<"simsun", "simsun">
|
|
1860
|
-
], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1861
|
-
width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
|
|
1862
|
-
}, undefined, {
|
|
1863
|
-
type: "text";
|
|
1864
|
-
content: string;
|
|
1865
|
-
slicedContent: string[];
|
|
1866
|
-
isButton?: boolean | undefined;
|
|
1867
|
-
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1868
|
-
width?: number[] | undefined;
|
|
1869
|
-
}>
|
|
1870
|
-
], {
|
|
1871
|
-
type: "spacer";
|
|
1872
|
-
char: string;
|
|
1873
|
-
charWidth: number;
|
|
1874
|
-
count: number;
|
|
1875
|
-
isButton?: boolean | undefined;
|
|
1876
|
-
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1877
|
-
} | {
|
|
1878
|
-
type: "text";
|
|
1879
|
-
content: string;
|
|
1880
|
-
slicedContent: string[];
|
|
1881
|
-
isButton?: boolean | undefined;
|
|
1882
|
-
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1883
|
-
width?: number[] | undefined;
|
|
1884
|
-
}>,
|
|
1885
|
-
ObjectSchema<{
|
|
1886
|
-
width: ArraySchema<NumberSchema<number>, number[]>;
|
|
1887
|
-
}, undefined, {
|
|
1888
|
-
width: number[];
|
|
1889
|
-
}>
|
|
1890
|
-
], ({
|
|
1929
|
+
export declare const ZCommentMeasuredContentItem: UnionSchema<(ObjectSchema<{
|
|
1930
|
+
type: LiteralSchema<"spacer", "spacer">;
|
|
1931
|
+
char: StringSchema<string>;
|
|
1932
|
+
charWidth: NumberSchema<number>;
|
|
1933
|
+
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1934
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1935
|
+
count: NumberSchema<number>;
|
|
1936
|
+
}, undefined, {
|
|
1937
|
+
type: "spacer";
|
|
1938
|
+
char: string;
|
|
1939
|
+
charWidth: number;
|
|
1940
|
+
count: number;
|
|
1941
|
+
isButton?: boolean | undefined;
|
|
1942
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1943
|
+
}> | IntersectSchema<[
|
|
1944
|
+
UnionSchema<(ObjectSchema<{
|
|
1945
|
+
type: LiteralSchema<"spacer", "spacer">;
|
|
1946
|
+
char: StringSchema<string>;
|
|
1947
|
+
charWidth: NumberSchema<number>;
|
|
1948
|
+
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1949
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1950
|
+
count: NumberSchema<number>;
|
|
1951
|
+
}, undefined, {
|
|
1891
1952
|
type: "spacer";
|
|
1892
1953
|
char: string;
|
|
1893
1954
|
charWidth: number;
|
|
1894
1955
|
count: number;
|
|
1895
1956
|
isButton?: boolean | undefined;
|
|
1896
1957
|
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1897
|
-
} | {
|
|
1958
|
+
}> | ObjectSchema<{
|
|
1959
|
+
type: LiteralSchema<"text", "text">;
|
|
1960
|
+
content: StringSchema<string>;
|
|
1961
|
+
slicedContent: ArraySchema<StringSchema<string>, string[]>;
|
|
1962
|
+
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1963
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1964
|
+
width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
|
|
1965
|
+
}, undefined, {
|
|
1898
1966
|
type: "text";
|
|
1899
1967
|
content: string;
|
|
1900
1968
|
slicedContent: string[];
|
|
1901
1969
|
isButton?: boolean | undefined;
|
|
1902
1970
|
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1903
1971
|
width?: number[] | undefined;
|
|
1904
|
-
})
|
|
1905
|
-
width: number[];
|
|
1906
|
-
}>,
|
|
1907
|
-
ObjectSchema<{
|
|
1908
|
-
type: LiteralSchema<"spacer", "spacer">;
|
|
1909
|
-
char: StringSchema<string>;
|
|
1910
|
-
charWidth: NumberSchema<number>;
|
|
1911
|
-
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
1912
|
-
font: OptionalSchema<UnionSchema<[
|
|
1913
|
-
LiteralSchema<"defont", "defont">,
|
|
1914
|
-
LiteralSchema<"gulim", "gulim">,
|
|
1915
|
-
LiteralSchema<"simsun", "simsun">
|
|
1916
|
-
], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
1917
|
-
count: NumberSchema<number>;
|
|
1918
|
-
}, undefined, {
|
|
1972
|
+
}>)[], {
|
|
1919
1973
|
type: "spacer";
|
|
1920
1974
|
char: string;
|
|
1921
1975
|
charWidth: number;
|
|
1922
1976
|
count: number;
|
|
1923
1977
|
isButton?: boolean | undefined;
|
|
1924
1978
|
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1979
|
+
} | {
|
|
1980
|
+
type: "text";
|
|
1981
|
+
content: string;
|
|
1982
|
+
slicedContent: string[];
|
|
1983
|
+
isButton?: boolean | undefined;
|
|
1984
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1985
|
+
width?: number[] | undefined;
|
|
1986
|
+
}>,
|
|
1987
|
+
ObjectSchema<{
|
|
1988
|
+
width: ArraySchema<NumberSchema<number>, number[]>;
|
|
1989
|
+
}, undefined, {
|
|
1990
|
+
width: number[];
|
|
1925
1991
|
}>
|
|
1926
|
-
], {
|
|
1992
|
+
], ({
|
|
1993
|
+
type: "spacer";
|
|
1994
|
+
char: string;
|
|
1995
|
+
charWidth: number;
|
|
1996
|
+
count: number;
|
|
1997
|
+
isButton?: boolean | undefined;
|
|
1998
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
1999
|
+
} | {
|
|
2000
|
+
type: "text";
|
|
2001
|
+
content: string;
|
|
2002
|
+
slicedContent: string[];
|
|
2003
|
+
isButton?: boolean | undefined;
|
|
2004
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
2005
|
+
width?: number[] | undefined;
|
|
2006
|
+
}) & {
|
|
2007
|
+
width: number[];
|
|
2008
|
+
}>)[], {
|
|
1927
2009
|
type: "spacer";
|
|
1928
2010
|
char: string;
|
|
1929
2011
|
charWidth: number;
|
|
@@ -1953,17 +2035,9 @@ export type CommentContentIndex = {
|
|
|
1953
2035
|
index: number;
|
|
1954
2036
|
font: CommentFlashFontParsed;
|
|
1955
2037
|
};
|
|
1956
|
-
export declare const ZCommentSize: UnionSchema<[
|
|
1957
|
-
LiteralSchema<"big", "big">,
|
|
1958
|
-
LiteralSchema<"medium", "medium">,
|
|
1959
|
-
LiteralSchema<"small", "small">
|
|
1960
|
-
], "big" | "medium" | "small">;
|
|
2038
|
+
export declare const ZCommentSize: UnionSchema<(LiteralSchema<"big", "big"> | LiteralSchema<"medium", "medium"> | LiteralSchema<"small", "small">)[], "big" | "medium" | "small">;
|
|
1961
2039
|
export type CommentSize = Output<typeof ZCommentSize>;
|
|
1962
|
-
export declare const ZCommentLoc: UnionSchema<[
|
|
1963
|
-
LiteralSchema<"ue", "ue">,
|
|
1964
|
-
LiteralSchema<"naka", "naka">,
|
|
1965
|
-
LiteralSchema<"shita", "shita">
|
|
1966
|
-
], "ue" | "naka" | "shita">;
|
|
2040
|
+
export declare const ZCommentLoc: UnionSchema<(LiteralSchema<"ue", "ue"> | LiteralSchema<"naka", "naka"> | LiteralSchema<"shita", "shita">)[], "ue" | "naka" | "shita">;
|
|
1967
2041
|
export type CommentLoc = Output<typeof ZCommentLoc>;
|
|
1968
2042
|
export type Collision = {
|
|
1969
2043
|
[key in CollisionPos]: CollisionItem;
|
|
@@ -1998,7 +2072,8 @@ export type NicoScriptReverse = {
|
|
|
1998
2072
|
start: number;
|
|
1999
2073
|
end: number;
|
|
2000
2074
|
};
|
|
2001
|
-
export
|
|
2075
|
+
export declare const ZNicoScriptReverseTarget: UnionSchema<(LiteralSchema<"\u30B3\u30E1", "\u30B3\u30E1"> | LiteralSchema<"\u6295\u30B3\u30E1", "\u6295\u30B3\u30E1"> | LiteralSchema<"\u5168", "\u5168">)[], "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168">;
|
|
2076
|
+
export type NicoScriptReverseTarget = Output<typeof ZNicoScriptReverseTarget>;
|
|
2002
2077
|
export type NicoScriptReplace = {
|
|
2003
2078
|
start: number;
|
|
2004
2079
|
long: number | undefined;
|
|
@@ -2013,9 +2088,12 @@ export type NicoScriptReplace = {
|
|
|
2013
2088
|
loc: CommentLoc | undefined;
|
|
2014
2089
|
no: number;
|
|
2015
2090
|
};
|
|
2016
|
-
export
|
|
2017
|
-
export type
|
|
2018
|
-
export
|
|
2091
|
+
export declare const ZNicoScriptReplaceRange: UnionSchema<(LiteralSchema<"\u5168", "\u5168"> | LiteralSchema<"\u5358", "\u5358">)[], "\u5168" | "\u5358">;
|
|
2092
|
+
export type NicoScriptReplaceRange = Output<typeof ZNicoScriptReplaceRange>;
|
|
2093
|
+
export declare const ZNicoScriptReplaceTarget: UnionSchema<(LiteralSchema<"\u30B3\u30E1", "\u30B3\u30E1"> | LiteralSchema<"\u6295\u30B3\u30E1", "\u6295\u30B3\u30E1"> | LiteralSchema<"\u5168", "\u5168"> | LiteralSchema<"\u542B\u307E\u306A\u3044", "\u542B\u307E\u306A\u3044"> | LiteralSchema<"\u542B\u3080", "\u542B\u3080">)[], "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168" | "\u542B\u307E\u306A\u3044" | "\u542B\u3080">;
|
|
2094
|
+
export type NicoScriptReplaceTarget = Output<typeof ZNicoScriptReplaceTarget>;
|
|
2095
|
+
export declare const ZNicoScriptReplaceCondition: UnionSchema<(LiteralSchema<"\u90E8\u5206\u4E00\u81F4", "\u90E8\u5206\u4E00\u81F4"> | LiteralSchema<"\u5B8C\u5168\u4E00\u81F4", "\u5B8C\u5168\u4E00\u81F4">)[], "\u90E8\u5206\u4E00\u81F4" | "\u5B8C\u5168\u4E00\u81F4">;
|
|
2096
|
+
export type NicoScriptReplaceCondition = Output<typeof ZNicoScriptReplaceCondition>;
|
|
2019
2097
|
export type NicoScriptBan = {
|
|
2020
2098
|
start: number;
|
|
2021
2099
|
end: number;
|
|
@@ -2079,53 +2157,36 @@ export type MeasureTextInput = FormattedCommentWithFont & {
|
|
|
2079
2157
|
scale: number;
|
|
2080
2158
|
};
|
|
2081
2159
|
export declare const ZMeasureInput: ObjectSchema<{
|
|
2082
|
-
font: UnionSchema<[
|
|
2083
|
-
|
|
2084
|
-
LiteralSchema<"
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
slicedContent: ArraySchema<StringSchema<string>, string[]>;
|
|
2113
|
-
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
2114
|
-
font: OptionalSchema<UnionSchema<[
|
|
2115
|
-
LiteralSchema<"defont", "defont">,
|
|
2116
|
-
LiteralSchema<"gulim", "gulim">,
|
|
2117
|
-
LiteralSchema<"simsun", "simsun">
|
|
2118
|
-
], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
2119
|
-
width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
|
|
2120
|
-
}, undefined, {
|
|
2121
|
-
type: "text";
|
|
2122
|
-
content: string;
|
|
2123
|
-
slicedContent: string[];
|
|
2124
|
-
isButton?: boolean | undefined;
|
|
2125
|
-
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
2126
|
-
width?: number[] | undefined;
|
|
2127
|
-
}>
|
|
2128
|
-
], {
|
|
2160
|
+
font: UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"mincho", "mincho"> | LiteralSchema<"gothic", "gothic"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "mincho" | "gothic" | "gulim" | "simsun">;
|
|
2161
|
+
content: ArraySchema<UnionSchema<(ObjectSchema<{
|
|
2162
|
+
type: LiteralSchema<"spacer", "spacer">;
|
|
2163
|
+
char: StringSchema<string>;
|
|
2164
|
+
charWidth: NumberSchema<number>;
|
|
2165
|
+
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
2166
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
2167
|
+
count: NumberSchema<number>;
|
|
2168
|
+
}, undefined, {
|
|
2169
|
+
type: "spacer";
|
|
2170
|
+
char: string;
|
|
2171
|
+
charWidth: number;
|
|
2172
|
+
count: number;
|
|
2173
|
+
isButton?: boolean | undefined;
|
|
2174
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
2175
|
+
}> | ObjectSchema<{
|
|
2176
|
+
type: LiteralSchema<"text", "text">;
|
|
2177
|
+
content: StringSchema<string>;
|
|
2178
|
+
slicedContent: ArraySchema<StringSchema<string>, string[]>;
|
|
2179
|
+
isButton: OptionalSchema<BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
2180
|
+
font: OptionalSchema<UnionSchema<(LiteralSchema<"defont", "defont"> | LiteralSchema<"gulim", "gulim"> | LiteralSchema<"simsun", "simsun">)[], "defont" | "gulim" | "simsun">, undefined, "defont" | "gulim" | "simsun" | undefined>;
|
|
2181
|
+
width: OptionalSchema<ArraySchema<NumberSchema<number>, number[]>, undefined, number[] | undefined>;
|
|
2182
|
+
}, undefined, {
|
|
2183
|
+
type: "text";
|
|
2184
|
+
content: string;
|
|
2185
|
+
slicedContent: string[];
|
|
2186
|
+
isButton?: boolean | undefined;
|
|
2187
|
+
font?: "defont" | "gulim" | "simsun" | undefined;
|
|
2188
|
+
width?: number[] | undefined;
|
|
2189
|
+
}>)[], {
|
|
2129
2190
|
type: "spacer";
|
|
2130
2191
|
char: string;
|
|
2131
2192
|
charWidth: number;
|
|
@@ -2601,6 +2662,7 @@ declare const typeGuard: {
|
|
|
2601
2662
|
isMyPost: boolean;
|
|
2602
2663
|
}[];
|
|
2603
2664
|
thread: (i: unknown) => i is {
|
|
2665
|
+
id: unknown;
|
|
2604
2666
|
fork: string;
|
|
2605
2667
|
commentCount: number;
|
|
2606
2668
|
comments: {
|
|
@@ -2618,9 +2680,9 @@ declare const typeGuard: {
|
|
|
2618
2680
|
source: string;
|
|
2619
2681
|
isMyPost: boolean;
|
|
2620
2682
|
}[];
|
|
2621
|
-
id?: unknown;
|
|
2622
2683
|
};
|
|
2623
2684
|
threads: (i: unknown) => i is {
|
|
2685
|
+
id: unknown;
|
|
2624
2686
|
fork: string;
|
|
2625
2687
|
commentCount: number;
|
|
2626
2688
|
comments: {
|
|
@@ -2638,17 +2700,16 @@ declare const typeGuard: {
|
|
|
2638
2700
|
source: string;
|
|
2639
2701
|
isMyPost: boolean;
|
|
2640
2702
|
}[];
|
|
2641
|
-
id?: unknown;
|
|
2642
2703
|
}[];
|
|
2643
2704
|
};
|
|
2644
2705
|
nicoScript: {
|
|
2645
2706
|
range: {
|
|
2646
|
-
target: (i: unknown) => i is
|
|
2707
|
+
target: (i: unknown) => i is "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168";
|
|
2647
2708
|
};
|
|
2648
2709
|
replace: {
|
|
2649
|
-
range: (i: unknown) => i is
|
|
2650
|
-
target: (i: unknown) => i is
|
|
2651
|
-
condition: (i: unknown) => i is
|
|
2710
|
+
range: (i: unknown) => i is "\u5168" | "\u5358";
|
|
2711
|
+
target: (i: unknown) => i is "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168" | "\u542B\u307E\u306A\u3044" | "\u542B\u3080";
|
|
2712
|
+
condition: (i: unknown) => i is "\u90E8\u5206\u4E00\u81F4" | "\u5B8C\u5168\u4E00\u81F4";
|
|
2652
2713
|
};
|
|
2653
2714
|
};
|
|
2654
2715
|
comment: {
|
|
@@ -2999,6 +3060,7 @@ declare class NiconiComments {
|
|
|
2999
3060
|
isMyPost: boolean;
|
|
3000
3061
|
}[];
|
|
3001
3062
|
thread: (i: unknown) => i is {
|
|
3063
|
+
id: unknown;
|
|
3002
3064
|
fork: string;
|
|
3003
3065
|
commentCount: number;
|
|
3004
3066
|
comments: {
|
|
@@ -3016,9 +3078,9 @@ declare class NiconiComments {
|
|
|
3016
3078
|
source: string;
|
|
3017
3079
|
isMyPost: boolean;
|
|
3018
3080
|
}[];
|
|
3019
|
-
id?: unknown;
|
|
3020
3081
|
};
|
|
3021
3082
|
threads: (i: unknown) => i is {
|
|
3083
|
+
id: unknown;
|
|
3022
3084
|
fork: string;
|
|
3023
3085
|
commentCount: number;
|
|
3024
3086
|
comments: {
|
|
@@ -3036,17 +3098,16 @@ declare class NiconiComments {
|
|
|
3036
3098
|
source: string;
|
|
3037
3099
|
isMyPost: boolean;
|
|
3038
3100
|
}[];
|
|
3039
|
-
id?: unknown;
|
|
3040
3101
|
}[];
|
|
3041
3102
|
};
|
|
3042
3103
|
nicoScript: {
|
|
3043
3104
|
range: {
|
|
3044
|
-
target: (i: unknown) => i is
|
|
3105
|
+
target: (i: unknown) => i is "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168";
|
|
3045
3106
|
};
|
|
3046
3107
|
replace: {
|
|
3047
|
-
range: (i: unknown) => i is
|
|
3048
|
-
target: (i: unknown) => i is
|
|
3049
|
-
condition: (i: unknown) => i is
|
|
3108
|
+
range: (i: unknown) => i is "\u5168" | "\u5358";
|
|
3109
|
+
target: (i: unknown) => i is "\u30B3\u30E1" | "\u6295\u30B3\u30E1" | "\u5168" | "\u542B\u307E\u306A\u3044" | "\u542B\u3080";
|
|
3110
|
+
condition: (i: unknown) => i is "\u90E8\u5206\u4E00\u81F4" | "\u5B8C\u5168\u4E00\u81F4";
|
|
3050
3111
|
};
|
|
3051
3112
|
};
|
|
3052
3113
|
comment: {
|