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 +1 -1
- package/package.json +1 -1
- package/runtime/01__rsvim.ts +7 -3
- package/types/01__rsvim.d.ts +3 -1
- package/types/index.d.ts +4 -0
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
|
|
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
package/runtime/01__rsvim.ts
CHANGED
|
@@ -1992,12 +1992,16 @@ export namespace Rsvim {
|
|
|
1992
1992
|
export import syn = RsvimSyn;
|
|
1993
1993
|
}
|
|
1994
1994
|
|
|
1995
|
-
|
|
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:
|
|
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:
|
|
2006
|
+
var Rsvim: RsvimNamespaceType;
|
|
2003
2007
|
}
|
package/types/01__rsvim.d.ts
CHANGED
|
@@ -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:
|
|
1335
|
+
var Rsvim: RsvimNamespaceType;
|
|
1335
1336
|
}
|
|
1337
|
+
export {};
|