We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d054958 commit 0e0ecd7Copy full SHA for 0e0ecd7
static/client.d.ts
@@ -22,8 +22,17 @@
22
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23
// POSSIBILITY OF SUCH DAMAGE.
24
25
+// These .pug files are different from the ones on the server. Our webpack
26
+// config will translate the .pug files into JS objects that are importable
27
+// with `hash` and `text` properties.
28
+//
29
+// See the code in `/etc/scripts/parsed-pug/parsed_pug_file.js` for details.
30
declare module '*.pug' {
- const content: any;
31
+ type WebpackBuiltPugFile = {
32
+ hash: string;
33
+ text: string;
34
+ };
35
+ declare const content: WebpackBuiltPugFile;
36
export default content;
37
}
38
0 commit comments