Skip to content

Commit

Permalink
Add recursive namespace
Browse files Browse the repository at this point in the history
Following on in #1, add recursive namespace support.
  • Loading branch information
Joe Grund authored and alfonsogarciacaro committed May 29, 2017
1 parent 14fa28b commit c4a848f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts2fable.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var ts = require("typescript");

var templates = {
file:
`namespace Fable.Import
`namespace rec Fable.Import
open System
open System.Text.RegularExpressions
open Fable.Core
Expand Down Expand Up @@ -386,7 +386,7 @@ function printInterface(prefix) {
templates.interface;
var template =
prefix + template
.replace("[TYPE_KEYWORD]", i === 0 ? "type" : "and")
.replace("[TYPE_KEYWORD]", "type")
.replace("[NAME]", escape(ifc.name))
.replace("[DECORATOR]", printDecorator(ifc))
.replace("[CONSTRUCTOR]", ifc.kind === "class"
Expand Down

0 comments on commit c4a848f

Please sign in to comment.