File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -927,6 +927,13 @@ declare global {
927
927
allowRetractingFlags : boolean ;
928
928
}
929
929
930
+ interface ImageSettings {
931
+ /** Maximum upload size of an animated gif (10 MiB). */
932
+ maxImageUploadSizeInBytesAnimatedGif : number ;
933
+ /** Maximum upload size of an image (2 MiB). */
934
+ maxImageUploadSizeInBytes : number ;
935
+ }
936
+
930
937
interface IntercomSettings {
931
938
appId : string ;
932
939
hostBaseUrl : string ;
@@ -993,6 +1000,8 @@ declare global {
993
1000
elections : ElectionsSettings ;
994
1001
/** Constants related to flags */
995
1002
flags : FlagSettings ;
1003
+ /** Constants related to image sizes */
1004
+ image : ImageSettings ;
996
1005
intercom : IntercomSettings ;
997
1006
legal : LegalSettings ;
998
1007
/** Constants related to the markdown parser */
Original file line number Diff line number Diff line change @@ -391,6 +391,8 @@ expectType<StackExchange.AccountSettings>(settings.accounts);
391
391
392
392
expectType < StackExchange . FlagSettings > ( settings . flags ) ;
393
393
394
+ expectType < number > ( StackExchange . settings . image . maxImageUploadSizeInBytes ) ;
395
+
394
396
expectType < StackExchange . MarkdownSettings > ( settings . markdown ) ;
395
397
396
398
expectType < StackExchange . SiteSettings > ( settings . site ) ;
You can’t perform that action at this time.
0 commit comments