Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions messaging/lib/shared-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ export interface MessageTypes {
*/
export interface MessagingBase<T extends MessageTypes = MessageTypes> {
notify<
Method extends T['notifications'] extends { method: string } ? T['notifications']['method'] : never,
Method extends (T['notifications'] extends { method: string } ? T['notifications']['method'] : never),
Msg = Extract<T['notifications'], { method: Method }>,
>(
...args: Msg extends { params: infer Params } ? [Method, Params] : [Method]
): void;
request<
Method extends T['requests'] extends { method: string } ? T['requests']['method'] : never,
Method extends (T['requests'] extends { method: string } ? T['requests']['method'] : never),
Msg = Extract<T['requests'], { method: Method }>,
Return = Msg extends { result: infer Result } ? Result : void,
>(
...args: Msg extends { params: infer Params } ? [Method, Params] : [Method]
): Promise<Return>;
subscribe<
Method extends T['subscriptions'] extends { subscriptionEvent: string } ? T['subscriptions']['subscriptionEvent'] : never,
Method extends (T['subscriptions'] extends { subscriptionEvent: string } ? T['subscriptions']['subscriptionEvent'] : never),
Msg = Extract<T['subscriptions'], { subscriptionEvent: Method }>,
Callback = Msg extends { params: infer Params } ? (params: Params) => void : (a: never) => void,
>(
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"eslint": "^10.7.0",
"eslint-plugin-react-hooks": "^7.1.1",
"minimist": "^1.2.8",
"prettier": "3.8.4",
"prettier": "3.9.5",
"stylelint": "^17.14.0",
"stylelint-config-standard": "^40.0.0",
"stylelint-csstree-validator": "^4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export function SignalStateProvider({ children }) {
// prettier-ignore
const nextVisibleRange = batched
? all.slice(0, Math.max(service.INITIAL, Math.max(service.INITIAL, visible.length)))
: all
: all;

setVisibleRange(nextVisibleRange);
fillHoles();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function ImageCrossFade_({ src }) {
// prettier-ignore
const nextState = prev.value === states.idle
? states.loadingFirst
: states.loading
: states.loading;
return { ...prev, value: nextState };
});

Expand Down
6 changes: 1 addition & 5 deletions special-pages/pages/new-tab/types/new-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@

export type OpenTarget = "same-tab" | "new-tab" | "new-window";
export type BackgroundVariant =
| DefaultBackground
| SolidColorBackground
| HexValueBackground
| GradientBackground
| UserImageBackground;
DefaultBackground | SolidColorBackground | HexValueBackground | GradientBackground | UserImageBackground;
export type PredefinedColor =
| "color01"
| "color02"
Expand Down
Loading