Set @babel/typescript options
diff --git a/babel.config.js b/babel.config.js
index 0daad76..8f358f4 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -32,6 +32,14 @@
     targets: 'defaults',
   };
 
+  // Options for the @babel/typescript preset.
+  const typescriptOptions = {
+    // Opt in to a Babel 8 default.
+    allowDeclareFields: true,
+    // Be explicit about type-only imports.
+    onlyRemoveTypeImports: true,
+  };
+
   // Options for the module-resolver plugin.
   // Used for resolving source files during development.
   let resolverOptions = {
@@ -55,6 +63,9 @@
       ...(DEV ? [['module-resolver', resolverOptions]] : []),
       ...(TEST ? ['istanbul'] : []),
     ],
-    presets: [['@babel/env', envOptions], '@babel/preset-typescript'],
+    presets: [
+      ['@babel/env', envOptions],
+      ['@babel/typescript', typescriptOptions],
+    ],
   };
 };