Skip to content
#

reflection

Here are 849 public repositories matching this topic...

bradleyayers
bradleyayers commented Feb 21, 2018

I have a table document with a column type of type document_type:

CREATE TYPE document_type AS ENUM (
    'NOTE',
    'PAGE'
);
CREATE TABLE document (
    id uuid NOT NULL,
    document_type document_type NOT NULL
);

This causes a name conflict in the generate types:

export type document_type = "NOTE" | "PAGE";

// ...

export namespace documentFields
Ocramius
Ocramius commented Jul 17, 2019

As documented in #134, type inference based on documented types is weak.

In practice, we want to detect type variance changes for complex types, such as @var Foo<Bar, Baz>.

We also want to detect changes such as:

function foo() {
-    return 1;
+    return 'foo';
}

These types are currently not inferred (BC check completely skipped), and that is a problem.

I think

Improve this page

Add a description, image, and links to the reflection topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the reflection topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.