瀏覽代碼

examples/tutorial/basic-2: Remove typescript

armaniferrante 4 年之前
父節點
當前提交
ce8263b858
共有 2 個文件被更改,包括 3 次插入12 次删除
  1. 3 2
      examples/tutorial/basic-2/tests/basic-2.js
  2. 0 10
      examples/tutorial/basic-2/tsconfig.json

+ 3 - 2
examples/tutorial/basic-2/tests/basic-2.spec.ts → examples/tutorial/basic-2/tests/basic-2.js

@@ -1,5 +1,6 @@
-import assert from 'assert'
-import * as anchor from '@project-serum/anchor'
+const assert = require('assert');
+const anchor = require('@project-serum/anchor');
+
 describe('basic-2', () => {
   const provider = anchor.Provider.local()
 

+ 0 - 10
examples/tutorial/basic-2/tsconfig.json

@@ -1,10 +0,0 @@
-{
-  "compilerOptions": {
-    "types": ["mocha", "chai"],
-    "typeRoots": ["./node_modules/@types"],
-    "lib": ["es2015"],
-    "module": "commonjs",
-    "target": "es6",
-    "esModuleInterop": true
-  }
-}