فهرست منبع

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
-  }
-}