|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 | 3 | exports[`default options 1`] = `
|
4 |
| -"export interface IExampleCss { |
5 |
| - \\"bar-baz\\": string; |
6 |
| - composed: string; |
7 |
| - foo: string; |
| 4 | +"declare namespace ExampleCssModule { |
| 5 | + export interface IExampleCss { |
| 6 | + \\"bar-baz\\": string; |
| 7 | + composed: string; |
| 8 | + foo: string; |
| 9 | + } |
8 | 10 | }
|
9 | 11 |
|
10 |
| -export const locals: IExampleCss; |
11 |
| -export default locals; |
| 12 | +declare const ExampleCssModule: ExampleCssModule.IExampleCss & { |
| 13 | + /** WARNING: Only available when \`css-loader\` is used without \`style-loader\` or \`mini-css-extract-plugin\` */ |
| 14 | + locals: ExampleCssModule.IExampleCss; |
| 15 | +}; |
| 16 | +
|
| 17 | +export = ExampleCssModule; |
12 | 18 | "
|
13 | 19 | `;
|
14 | 20 |
|
15 | 21 | exports[`localsConvention asIs 1`] = `
|
16 |
| -"export interface IExampleCss { |
17 |
| - \\"bar-baz\\": string; |
18 |
| - composed: string; |
19 |
| - foo: string; |
| 22 | +"declare namespace ExampleCssModule { |
| 23 | + export interface IExampleCss { |
| 24 | + \\"bar-baz\\": string; |
| 25 | + composed: string; |
| 26 | + foo: string; |
| 27 | + } |
20 | 28 | }
|
21 | 29 |
|
22 |
| -export const locals: IExampleCss; |
23 |
| -export default locals; |
| 30 | +declare const ExampleCssModule: ExampleCssModule.IExampleCss & { |
| 31 | + /** WARNING: Only available when \`css-loader\` is used without \`style-loader\` or \`mini-css-extract-plugin\` */ |
| 32 | + locals: ExampleCssModule.IExampleCss; |
| 33 | +}; |
| 34 | +
|
| 35 | +export = ExampleCssModule; |
24 | 36 | "
|
25 | 37 | `;
|
26 | 38 |
|
27 | 39 | exports[`localsConvention camelCase 1`] = `
|
28 |
| -"export interface IExampleCss { |
29 |
| - \\"bar-baz\\": string; |
30 |
| - barBaz: string; |
31 |
| - composed: string; |
32 |
| - foo: string; |
| 40 | +"declare namespace ExampleCssModule { |
| 41 | + export interface IExampleCss { |
| 42 | + \\"bar-baz\\": string; |
| 43 | + barBaz: string; |
| 44 | + composed: string; |
| 45 | + foo: string; |
| 46 | + } |
33 | 47 | }
|
34 | 48 |
|
35 |
| -export const locals: IExampleCss; |
36 |
| -export default locals; |
| 49 | +declare const ExampleCssModule: ExampleCssModule.IExampleCss & { |
| 50 | + /** WARNING: Only available when \`css-loader\` is used without \`style-loader\` or \`mini-css-extract-plugin\` */ |
| 51 | + locals: ExampleCssModule.IExampleCss; |
| 52 | +}; |
| 53 | +
|
| 54 | +export = ExampleCssModule; |
37 | 55 | "
|
38 | 56 | `;
|
39 | 57 |
|
40 | 58 | exports[`with banner 1`] = `
|
41 | 59 | "// autogenerated by typings-for-css-modules-loader
|
42 |
| -export interface IExampleCss { |
43 |
| - \\"bar-baz\\": string; |
44 |
| - composed: string; |
45 |
| - foo: string; |
| 60 | +declare namespace ExampleCssModule { |
| 61 | + export interface IExampleCss { |
| 62 | + \\"bar-baz\\": string; |
| 63 | + composed: string; |
| 64 | + foo: string; |
| 65 | + } |
46 | 66 | }
|
47 | 67 |
|
48 |
| -export const locals: IExampleCss; |
49 |
| -export default locals; |
| 68 | +declare const ExampleCssModule: ExampleCssModule.IExampleCss & { |
| 69 | + /** WARNING: Only available when \`css-loader\` is used without \`style-loader\` or \`mini-css-extract-plugin\` */ |
| 70 | + locals: ExampleCssModule.IExampleCss; |
| 71 | +}; |
| 72 | +
|
| 73 | +export = ExampleCssModule; |
50 | 74 | "
|
51 | 75 | `;
|
52 | 76 |
|
53 | 77 | exports[`with no formatter 1`] = `
|
54 |
| -"export interface IExampleCss { |
55 |
| - 'bar-baz': string; |
56 |
| - 'composed': string; |
57 |
| - 'foo': string; |
| 78 | +"declare namespace ExampleCssModule { |
| 79 | + export interface IExampleCss { |
| 80 | + 'bar-baz': string; |
| 81 | + 'composed': string; |
| 82 | + 'foo': string; |
| 83 | + } |
58 | 84 | }
|
59 | 85 |
|
60 |
| -export const locals: IExampleCss; |
61 |
| -export default locals;" |
| 86 | +declare const ExampleCssModule: ExampleCssModule.IExampleCss & { |
| 87 | + /** WARNING: Only available when \`css-loader\` is used without \`style-loader\` or \`mini-css-extract-plugin\` */ |
| 88 | + locals: ExampleCssModule.IExampleCss; |
| 89 | +}; |
| 90 | +
|
| 91 | +export = ExampleCssModule;" |
62 | 92 | `;
|
63 | 93 |
|
64 | 94 | exports[`with prettier 1`] = `
|
65 |
| -"export interface IExampleCss { |
66 |
| - \\"bar-baz\\": string; |
67 |
| - composed: string; |
68 |
| - foo: string; |
| 95 | +"declare namespace ExampleCssModule { |
| 96 | + export interface IExampleCss { |
| 97 | + \\"bar-baz\\": string; |
| 98 | + composed: string; |
| 99 | + foo: string; |
| 100 | + } |
69 | 101 | }
|
70 | 102 |
|
71 |
| -export const locals: IExampleCss; |
72 |
| -export default locals; |
| 103 | +declare const ExampleCssModule: ExampleCssModule.IExampleCss & { |
| 104 | + /** WARNING: Only available when \`css-loader\` is used without \`style-loader\` or \`mini-css-extract-plugin\` */ |
| 105 | + locals: ExampleCssModule.IExampleCss; |
| 106 | +}; |
| 107 | +
|
| 108 | +export = ExampleCssModule; |
73 | 109 | "
|
74 | 110 | `;
|
75 | 111 |
|
76 | 112 | exports[`with sourcemap 1`] = `
|
77 |
| -"export interface IExampleCss { |
78 |
| - \\"bar-baz\\": string; |
79 |
| - composed: string; |
80 |
| - foo: string; |
| 113 | +"declare namespace ExampleCssModule { |
| 114 | + export interface IExampleCss { |
| 115 | + \\"bar-baz\\": string; |
| 116 | + composed: string; |
| 117 | + foo: string; |
| 118 | + } |
81 | 119 | }
|
82 | 120 |
|
83 |
| -export const locals: IExampleCss; |
84 |
| -export default locals; |
| 121 | +declare const ExampleCssModule: ExampleCssModule.IExampleCss & { |
| 122 | + /** WARNING: Only available when \`css-loader\` is used without \`style-loader\` or \`mini-css-extract-plugin\` */ |
| 123 | + locals: ExampleCssModule.IExampleCss; |
| 124 | +}; |
| 125 | +
|
| 126 | +export = ExampleCssModule; |
85 | 127 | "
|
86 | 128 | `;
|
0 commit comments