The TypeScript code to strip import statements from.
The TypeScript code without import statements.
const code = `
import { Component } from '@angular/core';
import { OnInit } from '@angular/core';
const a = 1;
`.trim()
tsStripImports(code)
//=> 'const a = 1;'
Generated using TypeDoc
Strips all import statements from a given TypeScript code string.