Skip to content

Private / non-exported bindings #4534

@Beiri22

Description

@Beiri22

Description

As far as I understand, each defined and imported function, varible and module inside a typ-file can be imported from another typ-file. I would wish for some way to tag the one that should not be imported from elsewhere (like helper functions, internal constants, modules only used internally) as private. Are there any plans for that?

Use Case

You write a library or template and don't want the user to see all internally used stuff in code completion...

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requestscriptingAbout Typst's coding capabilitiessyntaxAbout syntax, parsing, etc.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions