Skip to content

Commit

Permalink
Improve a few misc types for specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
lipemat committed Nov 5, 2024
1 parent 04f337a commit 7441cb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wordpress__api-fetch/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare module '@wordpress/api-fetch' {
export type Middleware<D> = ( options: FetchOptions<D>, next: Middleware<D> ) => D;

export interface NonceMiddleware {
( options, next ): Middleware<{ headers: object }>;
( options: object, next: any ): Middleware<{ headers: object }>;
nonce: string;
}

Expand Down
2 changes: 1 addition & 1 deletion wordpress__data/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ not yet been saved.
// @todo properly type the rest of these as needed.
areInnerBlocksControlled: () => any;
canInsertBlockType: () => any;
canInsertBlocks: () => any; N
canInsertBlocks: () => any;
didAutomaticChange: () => any;
getAdjacentBlockClientId: () => any;
getBlockHierarchyRootClientId: () => any;
Expand Down
2 changes: 1 addition & 1 deletion wordpress__rich-text/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ declare module '@wordpress/rich-text' {
* @link https://developer.wordpress.org/block-editor/how-to-guides/format-api/
* @link https://developer.wordpress.org/block-editor/reference-guides/packages/packages-rich-text/#registerformattype
*/
export function registerFormatType( name: string, settings ): WPFormat | undefined;
export function registerFormatType( name: string, settings: WPFormat ): WPFormat | undefined;

/**
* Toggles a format object to a Rich Text value at the current selection.
Expand Down

0 comments on commit 7441cb7

Please sign in to comment.