NativeScript / NativeScript/android-dts-generator
Classes java.* do not include dots between them eg. javalangObject
Open
Nobody has claimed this yet.
question
- Dominant language
- Java
- Stars
- 96
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
Recently updated to the latest generator and I'm noticing that many times java.* classes do not include periods.
I notice you create a reference outside the module declarations but most of the time they are not included:
import javaniocharsetCharset = java.nio.charset.Charset;
declare module okhttp3 {
export class MediaType extends javalangObject { // SHOULD BE java.lang.Object
public type(): string;
public subtype(): string;
public charset(): javaniocharsetCharset;
public hashCode(): number;
public charset(param0: javaniocharsetCharset): javaniocharsetCharset;
public static parse(param0: string): okhttp3.MediaType;
public equals(param0: javalangObject): boolean; // SHOULD BE java.lang.Object
public toString(): string;
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace the generator path that formats Java class references and compare the emitted declarations with the issue's okhttp3.MediaType example. Verify that references such as java.lang.Object and java.nio.charset.Charset retain their dots in the generated TypeScript output; the payload names no source file or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100