Skip to content

Commit be69c9d

Browse files
committed
Fix to expose the same emoticon node as others
1 parent d5af1bc commit be69c9d

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

complex-types.d.ts

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
1-
import type {Literal} from 'nlcst'
2-
3-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
4-
export interface Emoticon extends Literal {
5-
type: 'EmoticonNode'
6-
}
7-
8-
declare module 'nlcst' {
9-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
10-
interface SentenceContentMap {
11-
emoticon: Emoticon
12-
}
13-
}
1+
// To do: remove next major.
2+
export type {Emoticon} from 'nlcst-emoticon-modifier'

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {import('./complex-types.js').Emoticon} Emoticon
2+
* @typedef {import('nlcst-emoticon-modifier').Emoticon} Emoticon
33
*/
44

55
export {affixEmoticonModifier} from './lib/index.js'

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
"dependencies": {
3636
"@types/nlcst": "^1.0.0",
3737
"@types/unist": "^2.0.0",
38+
"nlcst-emoticon-modifier": "^2.0.0",
3839
"unist-util-modify-children": "^3.0.0"
3940
},
4041
"devDependencies": {
4142
"@types/node": "^18.0.0",
4243
"c8": "^7.0.0",
4344
"nlcst-emoji-modifier": "^5.0.0",
44-
"nlcst-emoticon-modifier": "^2.0.0",
4545
"prettier": "^2.0.0",
4646
"remark-cli": "^11.0.0",
4747
"remark-preset-wooorm": "^9.0.0",

0 commit comments

Comments
 (0)