Skip to content
This repository was archived by the owner on Dec 25, 2018. It is now read-only.
This repository was archived by the owner on Dec 25, 2018. It is now read-only.

Shall you remove "default" from ReadOnlyCollectionWrapper export? #74

@HardySoftware

Description

@HardySoftware

Here is the class

https://github.com/electricessence/TypeScript.NET/blob/master/source/System/Collections/ReadOnlyCollectionWrapper.ts

If I have the import

import { ReadOnlyCollectionWrapper } from 'typescript-dotnet/source/System/Collections/ReadOnlyCollectionWrapper';

The VS code complains

Module '"../../../../../../../Users/my-name/Documents/Projects/my-project/node_modules/typescript-dotnet/source/System/Collections/ReadOnlyCollectionWrapper"' has no exported member 'ReadOnlyCollectionWrapper'.ts(2305)

And according to https://basarat.gitbooks.io/typescript/content/docs/tips/defaultIsBad.html the "default" should be avoided because of "Poor Discoverability".

The code still works, I think.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions