|
1 |
| -import * as jsep from "jsep"; |
2 |
| -import { Expression, IPlugin } from "jsep"; |
3 |
| -export const name: string; |
4 |
| -export const OCURLY_CODE: number; |
5 |
| -export const CCURLY_CODE: number; |
6 |
| -export const OBJECT_EXP: string; |
7 |
| -export const PROPERTY: string; |
8 |
| -export function init(this: typeof jsep): void; |
| 1 | +declare module "object" { |
| 2 | + namespace object { |
| 3 | + import jsep from "jsep"; |
| 4 | + export const name: string; |
| 5 | + export const OCURLY_CODE: number; |
| 6 | + export const CCURLY_CODE: number; |
| 7 | + export const OBJECT_EXP: string; |
| 8 | + export const PROPERTY: string; |
| 9 | + export function init(this: typeof jsep): void; |
9 | 10 |
|
10 |
| -export interface ObjectExpression extends Expression { |
11 |
| - type: "ObjectExpression"; |
12 |
| - properties: Property[]; |
13 |
| -} |
| 11 | + export interface ObjectExpression extends jsep.jsep.Expression { |
| 12 | + type: "ObjectExpression"; |
| 13 | + properties: Property[]; |
| 14 | + } |
14 | 15 |
|
15 |
| -export interface Property extends Expression { |
16 |
| - type: "Property"; |
17 |
| - computed: boolean; |
18 |
| - key: Expression; |
19 |
| - shorthand: boolean; |
20 |
| - value?: Expression; |
21 |
| -} |
| 16 | + export interface Property extends jsep.jsep.Expression { |
| 17 | + type: "Property"; |
| 18 | + computed: boolean; |
| 19 | + key: jsep.jsep.Expression; |
| 20 | + shorthand: boolean; |
| 21 | + value?: jsep.jsep.Expression; |
| 22 | + } |
22 | 23 |
|
23 |
| -declare const _export: IPlugin; |
24 |
| -export default _export; |
| 24 | + const _export: jsep.jsep.IPlugin; |
| 25 | + export default _export; |
| 26 | + } |
| 27 | +} |
0 commit comments