rbxts-fabric's Introduction
rbxts-fabric's People
rbxts-fabric's Issues
Members of Reducers and Symbol do not appear in intellisense in new project
In a new project with no previous imports from Reducers or Symbol, exports from these definition files do not appear in the intellisense.
import { } from "@rbxts/fabric/src/FabricLib/Fabric/Operators/Reducers";
import { named } from "@rbxts/fabric/src/FabricLib/Shared/Symbol";
Whatever handles the intellisense does not randomly look in package subdirectories to look for definition files.
Unit.getOrCreateUnit and UnitDefinition.units do not check ref validity
getOrCreateUnit<TAdd extends keyof FabricUnits>(
unitResolvable: TAdd
): ThisFabricUnit<TAdd>;
Not sure how to write the conditional for this.
Support for Roact addon
I believe augmenting the @rbxts/roact
types like
declare global {
namespace JSX {
interface IntrinsicAttributes {
[key in keyof FabricUnits]: FabricUnit<key>["data"];
}
}
}
would work.
Writing a unit interface does not provide intellisense for UnitDefinition properties
Given this sample,
import { UnitDefinition, ThisFabricUnit } from "@rbxts/fabric";
declare global {
interface FabricUnits {
ExampleUnit: ExampleUnitDefinition;
}
}
interface ExampleUnitDefinition extends UnitDefinition<"ExampleUnit"> {
foo(this: ThisFabricUnit<"ExampleUnit">): void;
}
The ExampleUnitDefinition
interface does not have any intellisense for properties like data
, ref
, or _addLayerData
fabric.DEBUG not accessible
the DEBUG field of the Fabric class makes it inaccessible to disable DEBUG mode. To fix change protected to public.
declare class Fabric {
public DEBUG: boolean;
Properly type the `defaults` field based on the `data` type
UnitDefinition.units does not properly check _addLayerData
It only checks a definition's data
field. Not sure how to do conditionals inside of interfaces like these.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.