atom-react-autocomplete icon indicating copy to clipboard operation
atom-react-autocomplete copied to clipboard

Typescript support

Open rr-kalbeck opened this issue 8 years ago • 0 comments

is typescript .tsx supported? i tried the following..

.importjs.json

{
  "lookupPaths": [
    "testing/**/*.tsx"
  ]
}

and the generated completions.json looks like this..

{
  "components": {
    "description": {},
    "methods": {}
  }
}

i have one component called test-component.tsx inside a directory called testing that looks like this...

import * as React from 'react';

interface TestComponentProps {
    test : string;
}

const TestComponent : React.StatelessComponent<TestComponentProps> = ( props : TestComponentProps ) => {
    return (
        <div>{ props.test }</div>
    );
};

export { TestComponent as default };

should this work?

rr-kalbeck avatar Nov 22 '17 16:11 rr-kalbeck