Skip to content
Merged
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 types/kap-plugin/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Project: https://github.com/wulkano/kap/blob/master/docs/plugins.md
// Definitions by: Connor Peet <https://github.com/connor4312>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.8
// Minimum TypeScript Version: 4.2

import * as got from 'got';
import * as ElectronStore from 'electron-store';
import { JSONSchema7 } from 'json-schema';

export interface KapContext<T> {
export interface KapContext<T extends Record<string, any>> {
/**
* The file format the user chose in the editor window
*/
Expand Down Expand Up @@ -92,7 +92,7 @@ export type ConfigSchema<TValue> = Pick<JSONSchema7, Exclude<keyof JSONSchema7,
default?: TValue | undefined;
};

export interface KapShareService<T = unknown> {
export interface KapShareService<T extends Record<string, any> = Record<string, any>> {
/**
* The function that is run when the user clicks the menu item.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/kap-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
"electron-store": ">=5.1.0"
"electron-store": ">=8.0.2"
}
}