From 7a54bfa73039d3cf2d4062c55dc1b8f876eac7de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 10 May 2013 04:28:17 -0700 Subject: [PATCH] Updated Exports Files (markdown) --- Exports-Files.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Exports-Files.md b/Exports-Files.md index 7eb1687..a2c59da 100644 --- a/Exports-Files.md +++ b/Exports-Files.md @@ -36,9 +36,7 @@ The constructors' options objects, and their properties, are declared in the `sr This file is also processed with the `bin/generate-exports` script, but using the `--externs` and `--typedef` switches. -Note: config objects and properties are declared in a specific (separate) file because they may be shared by multiple constructors. For example the `ol.source.Vector` constructor currently takes an `ol.source.SourceOptions` options object, and `ol.source.SourceOptions` is a generic/base type that may be used for other constructors. - -Note: We may want to change that in the future, and force each constructor to have its own config object type. In this way config objects and properties could be declared in the same file as their corresponding constructors. +[Note: config objects and properties are declared in a specific (separate) file because they may be shared by multiple constructors. For example the `ol.source.Vector` constructor currently takes an `ol.source.SourceOptions` options object, and `ol.source.SourceOptions` is a generic/base type that may be used for other constructors. We may want to change that in the future, and force each constructor to have its own config object type. In this way config objects and properties could be declared in the same file as their corresponding constructors.] The `generate-exports --externs` generates Closure externs from the `@typedef` and `@property` directives. The `build.py` script places these externs in the `build/src/external/externs/types.js` file, which is used as a regular externs file by the Closure compiler (see `buildcfg/ol.json`).