Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 502 Bytes

Namespace.md

File metadata and controls

22 lines (16 loc) · 502 Bytes

Namespace

Problem

Typescript generated code defines the namespace from the package name.

export namespace com.deezer.sample.my_project.features.share_feat.dto {
    class ShareDto {

From a Typescript usage, it makes it difficult to operate with such long names.

Solution

ksp {
    arg("erasePackage", "true")
}

This will generate all your code in the empty package, removing entirely the namespace for Typescript.

As a result, it can produce naming collision.