rsvim-types 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@ The VIM editor reinvented in Rust+TypeScript.
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://crates.io/crates/rsvim"><img alt="rsvim" src="https://img.shields.io/crates/v/rsvim" /></a>
11
- <a href="https://www.npmjs.com/package/@rsvim/types"><img alt="rsvim" src="https://img.shields.io/npm/v/%40rsvim%2Ftypes" /></a>
11
+ <a href="https://www.npmjs.com/package/rsvim-types"><img alt="rsvim" src="https://img.shields.io/npm/v/rsvim-types" /></a>
12
12
  <a href="https://docs.rs/rsvim_core/latest/"><img alt="rsvim_core" src="https://img.shields.io/docsrs/rsvim_core?label=docs.rs" /></a>
13
13
  <a href="https://github.com/rsvim/rsvim/actions/workflows/release.yml"><img alt="release.yml" src="https://img.shields.io/github/actions/workflow/status/rsvim/rsvim/release.yml" /></a>
14
14
  <a href="https://github.com/rsvim/rsvim/actions/workflows/ci.yml"><img alt="ci.yml" src="https://img.shields.io/github/actions/workflow/status/rsvim/rsvim/ci.yml?branch=main&label=ci" /></a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsvim-types",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "TypeScript types for Rsvim text editor.",
5
5
  "keywords": [
6
6
  "rsvim"
@@ -1992,12 +1992,16 @@ export namespace Rsvim {
1992
1992
  export import syn = RsvimSyn;
1993
1993
  }
1994
1994
 
1995
- (function (globalThis: { Rsvim: typeof Rsvim }) {
1995
+ // Fix self referencing issue between namespace "Rsvim" and global object "Rsvim",
1996
+ // by capturing the "Rsvim" namespace type BEFORE global object "Rsvim" shadows it.
1997
+ type RsvimNamespaceType = typeof Rsvim;
1998
+
1999
+ (function (globalThis: { Rsvim: RsvimNamespaceType }) {
1996
2000
  globalThis.Rsvim = Rsvim;
1997
- })(globalThis as unknown as { Rsvim: typeof Rsvim });
2001
+ })(globalThis as unknown as { Rsvim: RsvimNamespaceType });
1998
2002
 
1999
2003
  /// Declarations for .d.ts
2000
2004
  declare global {
2001
2005
  // @ts-ignore Ignore warning
2002
- var Rsvim: typeof Rsvim;
2006
+ var Rsvim: RsvimNamespaceType;
2003
2007
  }
@@ -1330,6 +1330,8 @@ export declare namespace Rsvim {
1330
1330
  export import rt = RsvimRt;
1331
1331
  export import syn = RsvimSyn;
1332
1332
  }
1333
+ type RsvimNamespaceType = typeof Rsvim;
1333
1334
  declare global {
1334
- var Rsvim: typeof Rsvim;
1335
+ var Rsvim: RsvimNamespaceType;
1335
1336
  }
1337
+ export {};
package/types/index.d.ts CHANGED
@@ -1,2 +1,6 @@
1
1
  /// <reference path="00__web.d.ts" />
2
2
  /// <reference path="01__rsvim.d.ts" />
3
+
4
+ // Export all types
5
+ export * from "./00__web";
6
+ export * from "./01__rsvim";