Skip to content

Commit

Permalink
chore(deps-dev): bump typed-emitter from 1.4.0 to 2.1.0 (#419)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump typed-emitter from 1.4.0 to 2.1.0

Bumps [typed-emitter](https://github.com/andywer/typed-emitter) from 1.4.0 to 2.1.0.
- [Release notes](https://github.com/andywer/typed-emitter/releases)
- [Commits](andywer/typed-emitter@v1.4.0...v2.1.0)

---
updated-dependencies:
- dependency-name: typed-emitter
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix type errors

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Masafumi Koba <[email protected]>
  • Loading branch information
dependabot[bot] and ybiquitous authored Feb 14, 2024
1 parent 5a40d97 commit 4a008af
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 13 deletions.
60 changes: 51 additions & 9 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 @@ -252,7 +252,7 @@
"stylelint-scss": "^5.1.0",
"ts-jest": "^27.0.7",
"ts-node": "^10.4.0",
"typed-emitter": "^1.4.0",
"typed-emitter": "^2.1.0",
"typescript": "^4.5.2",
"zen-observable": "^0.8.15"
},
Expand Down
2 changes: 1 addition & 1 deletion src/extension/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type vscode from 'vscode';
export function activate({ subscriptions }: vscode.ExtensionContext): PublicApi {
const serverPath = require.resolve('./start-server');

const api: PublicApi = Object.assign(new EventEmitter(), { codeActionReady: false });
const api = Object.assign(new EventEmitter(), { codeActionReady: false }) as PublicApi;

const client = new LanguageClient(
'Stylelint',
Expand Down
4 changes: 2 additions & 2 deletions src/extension/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import type { DidRegisterDocumentFormattingEditProviderNotificationParams } from
/**
* VS Code extension event names.
*/
export interface ExtensionEvents {
export type ExtensionEvents = {
DidRegisterDocumentFormattingEditProvider: (
params: DidRegisterDocumentFormattingEditProviderNotificationParams,
) => void;
DidResetConfiguration: () => void;
}
};

/**
* VS Code extension public API.
Expand Down

0 comments on commit 4a008af

Please sign in to comment.