aboutsummaryrefslogtreecommitdiff
path: root/static/formatter-registry.interfaces.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/formatter-registry.interfaces.ts')
-rw-r--r--static/formatter-registry.interfaces.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/static/formatter-registry.interfaces.ts b/static/formatter-registry.interfaces.ts
index 4994c7ead..c60aaa188 100644
--- a/static/formatter-registry.interfaces.ts
+++ b/static/formatter-registry.interfaces.ts
@@ -22,10 +22,17 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
+import { FormatBase } from './settings.interfaces';
+
export interface FormatRequestOptions {
source: string;
formatterId: string;
- base: string;
+ /**
+ * Specifies which formatting preset to use. "__DefaultStyle" means the
+ * formatter doesn't have style presets, and that the backend should
+ * ignore the "base" option.
+ */
+ base: FormatBase | '__DefaultStyle';
tabWidth: number;
useSpaces: boolean;
}